POST api/Room/GetAllBySearchItems

Request Information

URI Parameters

None.

Body Parameters

SearchRoomViewModel
NameDescriptionTypeAdditional information
City_Id

integer

None.

Hotel_Id

integer

None.

StartDate

date

None.

EndDate

date

None.

CountRoom

integer

None.

CountChild

integer

None.

CountAdult

integer

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "City_Id": 1,
  "Hotel_Id": 2,
  "StartDate": "2021-01-25T16:19:35.5384699+03:30",
  "EndDate": "2021-01-25T16:19:35.5384699+03:30",
  "CountRoom": 5,
  "CountChild": 6,
  "CountAdult": 7,
  "Id": 8
}

application/xml, text/xml

Sample:
<SearchRoomViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArNikAPI.Services.Articles.Models">
  <Id xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities">8</Id>
  <City_Id>1</City_Id>
  <CountAdult>7</CountAdult>
  <CountChild>6</CountChild>
  <CountRoom>5</CountRoom>
  <EndDate>2021-01-25T16:19:35.5384699+03:30</EndDate>
  <Hotel_Id>2</Hotel_Id>
  <StartDate>2021-01-25T16:19:35.5384699+03:30</StartDate>
</SearchRoomViewModel>

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 'SearchRoomViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.