| Required role: | Admin |
| All Verbs | /rooms |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BuildingIds | query | ArrayOfInt | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | List<RoomDTO> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoomId | form | int | No | |
| WingId | form | int | No | |
| Room | form | string | No | |
| Code | form | string | No | |
| Gender | form | string | No | |
| Assignable | form | short | No | |
| Rate | form | decimal? | No | |
| Comments | form | string | No | |
| DiagramId | form | int? | No | |
| RoomType | form | string | No | |
| RoomTypeId | form | int? | No | |
| BuildingId | form | int | No | |
| BuildingName | form | string | No | |
| WingName | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST //rooms HTTP/1.1
Host: api.lsu.abodehms.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
buildingIds:
[
0
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
[
{
roomId: 0,
wingId: 0,
room: String,
code: String,
gender: String,
assignable: 0,
rate: 0,
comments: String,
diagramId: 0,
roomType: String,
roomTypeId: 0,
buildingId: 0,
buildingName: String,
wingName: String
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}