GET api/Room/{name}
Return a bookable room by name (Http Status 200). If something is wrong HTTP Status: 404 = Not find. 401 = Unauthorized. 500 = Some runtime exeption.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name |
Room number/name. Example: E2406. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Return a bookable room by name (Http Status 200). If something is wrong HTTP Status: 404 = Not find. 401 = Unauthorized. 500 = Some runtime exeption.
Room| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Room number/name. Example: E2406 The structure of the room names is. The first letter is House (E)2406, the second is the floor E(2)406. |
string |
None. |
| Description |
Some kind of description of the room. |
string |
None. |
| More |
Any extra description of the room or any equipment or similar. |
string |
None. |
| Types |
The types that are connected to the room. The name of the type, if there are several they are seperated with (,). |
string |
None. |
Response Formats
application/json, text/json
{
"Name": "sample string 1",
"Description": "sample string 2",
"More": "sample string 3",
"Types": "sample string 4"
}
application/xml, text/xml
<Room xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JU.API.Room.Models"> <Description>sample string 2</Description> <More>sample string 3</More> <Name>sample string 1</Name> <Types>sample string 4</Types> </Room>