POST api/hotel/create

Request Information

URI Parameters

None.

Body Parameters

Hotel
NameDescriptionTypeAdditional information
HotelName

string

None.

Address

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Phone

string

None.

Email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "HotelName": "sample string 1",
  "Address": "sample string 2",
  "Latitude": 3.1,
  "Longitude": 4.1,
  "Phone": "sample string 5",
  "Email": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Hotel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.