GET api/Category/{id}
Returns the specified Category
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| CategoryCode | string |
String length: inclusive between 0 and 25 |
|
| Description | string |
String length: inclusive between 0 and 50 |
|
| Inactive | boolean |
None. |
|
| GLCode | string |
String length: inclusive between 0 and 6 |
Response Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"CategoryCode": "sample string 2",
"Description": "sample string 3",
"Inactive": true,
"GLCode": "sample string 4"
}
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <CategoryCode>sample string 2</CategoryCode> <CategoryId>1</CategoryId> <Description>sample string 3</Description> <GLCode>sample string 4</GLCode> <Inactive>true</Inactive> </Category>