POST api/ClosedMonths

Request Information

URI Parameters

None.

Body Parameters

ClosedMonth
NameDescriptionTypeAdditional information
ID

integer

None.

Month

integer

None.

Year

integer

None.

HotelId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Month": 2,
  "Year": 3,
  "HotelId": 4
}

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

Response Information

Resource Description

ClosedMonth
NameDescriptionTypeAdditional information
ID

integer

None.

Month

integer

None.

Year

integer

None.

HotelId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Month": 2,
  "Year": 3,
  "HotelId": 4
}