POST api/Categories
Request Information
URI Parameters
None.
Body Parameters
CategoryName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
NumId | integer |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "NumId": 2, "Name": "sample string 3" }
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Asian_pubishers_API.Models"> <Id>sample string 1</Id> <Name>sample string 3</Name> <NumId>2</NumId> </Category>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CategoryName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
NumId | integer |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "NumId": 2, "Name": "sample string 3" }
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Asian_pubishers_API.Models"> <Id>sample string 1</Id> <Name>sample string 3</Name> <NumId>2</NumId> </Category>