POST api/Rooms
Adiciona um novo quarto.
Request Information
URI Parameters
None.
Body Parameters
Objeto quarto a adicionar.
RoomName | Description | Type | Additional information |
---|---|---|---|
RoomId | integer |
None. |
|
Number | integer |
None. |
|
Type | integer |
None. |
|
Capacity | integer |
None. |
|
PricePerNight | decimal number |
None. |
|
Status | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "RoomId": 1, "Number": 2, "Type": 3, "Capacity": 4, "PricePerNight": 5.0, "Status": 6 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Mensagem de sucesso ou erro.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.