POST api/service/new
Request Information
URI Parameters
None.
Body Parameters
NewService| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Rate | decimal number |
None. |
|
| Type | integer |
None. |
|
| UserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Description": "sample string 2",
"Rate": 3.1,
"Type": 4,
"UserId": 5
}
application/xml, text/xml
Sample:
<NewService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BizBook.Models.NewModels"> <Description>sample string 2</Description> <Name>sample string 1</Name> <Rate>3.1</Rate> <Type>4</Type> <UserId>5</UserId> </NewService>
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. |