POST api/Bookings

Adiciona uma nova reserva.

Request Information

URI Parameters

None.

Body Parameters

Objeto reserva a adicionar.

Booking
NameDescriptionTypeAdditional information
BookingId

integer

None.

GuestId

integer

None.

RoomId

integer

None.

CheckInDate

date

None.

CheckOutDate

date

None.

ReservationDate

date

None.

NumberOfGuests

integer

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "GuestId": 1,
  "RoomId": 1,
  "CheckInDate": "2025-06-16T06:00:09.6943565-05:00",
  "CheckOutDate": "2025-06-16T06:00:09.6943565-05:00",
  "ReservationDate": "2025-06-16T06:00:09.6943565-05:00",
  "NumberOfGuests": 1,
  "Status": 5
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Mensagem de sucesso ou erro.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.