GET api/JDData/Category?CategoryID={CategoryID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CategoryID | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
Collection of CategoryViewModelName | Description | Type | Additional information |
---|---|---|---|
CategoryID | integer |
None. |
|
CategoryName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "categoryID": 1, "categoryName": "sample string 2" }, { "categoryID": 1, "categoryName": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfCategoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models"> <CategoryViewModel> <CategoryID>1</CategoryID> <CategoryName>sample string 2</CategoryName> </CategoryViewModel> <CategoryViewModel> <CategoryID>1</CategoryID> <CategoryName>sample string 2</CategoryName> </CategoryViewModel> </ArrayOfCategoryViewModel>