POST Dealer/SubCategory
Request Information
URI Parameters
None.
Body Parameters
CategoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryID | integer |
None. |
|
| DistID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryID": 1,
"DistID": 2
}
application/xml, text/xml
Sample:
<CategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YoVendoRecargaAPI.WebAPI.Models"> <CategoryID>1</CategoryID> <DistID>2</DistID> </CategoryRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DealerCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryID | integer |
None. |
|
| Name | string |
None. |
|
| ImgUrl | string |
None. |
|
| Products | Collection of string |
None. |
|
| TotalProducts | integer |
None. |
|
| IsSubCategory | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"CategoryID": 1,
"Name": "sample string 2",
"ImgUrl": "sample string 3",
"Products": [
"sample string 1",
"sample string 2"
],
"TotalProducts": 4,
"IsSubCategory": true
}
application/xml, text/xml
Sample:
<DealerCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YoVendoRecargaAPI.WebAPI.Models">
<CategoryID>1</CategoryID>
<ImgUrl>sample string 3</ImgUrl>
<IsSubCategory>true</IsSubCategory>
<Name>sample string 2</Name>
<Products xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Products>
<TotalProducts>4</TotalProducts>
</DealerCategory>