POST api/CategoryAPI
Request Information
URI Parameters
None.
Body Parameters
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| PhotoIdentity | Collection of byte |
None. |
|
| IdentityFileType | string |
None. |
|
| IdentityFileName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"PhotoIdentity": "QEA=",
"IdentityFileType": "sample string 3",
"IdentityFileName": "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/DCubeHotelDomain.Models.Inventory"> <Id>1</Id> <IdentityFileName>sample string 4</IdentityFileName> <IdentityFileType>sample string 3</IdentityFileType> <Name>sample string 2</Name> <PhotoIdentity>QEA=</PhotoIdentity> </Category>
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. |