POST api/rooms
Request Information
URI Parameters
None.
Body Parameters
rooms| Name | Description | Type | Additional information |
|---|---|---|---|
| id_room | integer |
None. |
|
| room_name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id_room": 1,
"room_name": "sample string 2"
}
text/html
Sample:
{"id_room":1,"room_name":"sample string 2"}
application/xml, text/xml
Sample:
<rooms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models"> <id_room>1</id_room> <room_name>sample string 2</room_name> </rooms>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
rooms| Name | Description | Type | Additional information |
|---|---|---|---|
| id_room | integer |
None. |
|
| room_name | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id_room": 1,
"room_name": "sample string 2"
}
text/html
Sample:
{"id_room":1,"room_name":"sample string 2"}
application/xml, text/xml
Sample:
<rooms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models"> <id_room>1</id_room> <room_name>sample string 2</room_name> </rooms>