POST api/Categories
Creates a new Categories entity
Request Information
URI Parameters
None.
Body Parameters
CategoriesData| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryID | integer |
None. |
|
| CategoryName | string |
None. |
|
| Description | string |
None. |
|
| Picture | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryID": 1,
"CategoryName": "sample string 2",
"Description": "sample string 3",
"Picture": "QEA="
}
text/xml
Sample:
<CategoriesData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <CategoryID>1</CategoryID> <CategoryName>sample string 2</CategoryName> <Description>sample string 3</Description> <Picture>QEA=</Picture> </CategoriesData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |