POST api/Hotel/Add

Request Information

URI Parameters

None.

Body Parameters

HotelAddDto
NameDescriptionTypeAdditional information
WebSiteID

globally unique identifier

None.

RouteID

globally unique identifier

None.

Name

string

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "webSiteID": "32712128-574a-47e4-abdf-475d53f956ac",
  "routeID": "cdcca44f-8c71-40db-b8ea-d50f531de8bd",
  "name": "sample string 1",
  "status": "sample string 2"
}

application/xml, text/xml

Sample:
<HotelAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <Name>sample string 1</Name>
  <RouteID>cdcca44f-8c71-40db-b8ea-d50f531de8bd</RouteID>
  <Status>sample string 2</Status>
  <WebSiteID>32712128-574a-47e4-abdf-475d53f956ac</WebSiteID>
</HotelAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"WebSiteID":"32712128-574a-47e4-abdf-475d53f956ac","RouteID":"cdcca44f-8c71-40db-b8ea-d50f531de8bd","Name":"sample string 1","Status":"sample string 2"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.