GET api/Product/Categories
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of ProductCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| description | string |
None. |
|
| mainCategoryId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"description": "sample string 1",
"mainCategoryId": 1
},
{
"id": 1,
"description": "sample string 1",
"mainCategoryId": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfProductCategory xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductCategory>
<id>1</id>
<description>sample string 1</description>
<mainCategoryId>1</mainCategoryId>
</ProductCategory>
<ProductCategory>
<id>1</id>
<description>sample string 1</description>
<mainCategoryId>1</mainCategoryId>
</ProductCategory>
</ArrayOfProductCategory>