POST api/Category/PagingCategory

Request Information

URI Parameters

None.

Body Parameters

GetListCategoryRequest
NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

KeySearch

string

None.

Type

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 1,
  "KeySearch": "sample string 1",
  "Type": 1
}

application/xml, text/xml

Sample:
<GetListCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Category">
  <KeySearch>sample string 1</KeySearch>
  <PageIndex>1</PageIndex>
  <PageSize>1</PageSize>
  <Type>1</Type>
</GetListCategoryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetListCategoryRequest'.

Response Information

Resource Description

PaginatorResponseOfCategoryResponse
NameDescriptionTypeAdditional information
Count

integer

None.

TotalMoney

decimal number

None.

PayingAmount

decimal number

None.

TotalIncome

decimal number

None.

TotalSpend

decimal number

None.

TotalDebt

decimal number

None.

TotalOrderAmount

decimal number

None.

TotalPaid

decimal number

None.

NhapHang_SoTienDaDua

decimal number

None.

NhapHang_SoLuongSanPham

decimal number

None.

NhapHang_TongTienSanPham

decimal number

None.

NhapHang_HoanTien

decimal number

None.

NhapHang_GhiChuTien

decimal number

None.

Items

Collection of CategoryResponse

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Common.Model.Response.Category.CategoryResponse'. Path 'Items[0].Children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Common.Model.Response.Category.CategoryResponse'. Path 'Items[0].Children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Common.Model.Response.Category.CategoryResponse, Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Common.Model.Response.Category.CategoryResponse, Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.