POST api/v{version}/laundry/laundryview
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version |
The requested API version |
string |
Required Default value is 1 |
Body Parameters
Collection of stringRequest Formats
application/json, text/json
Sample:
[ "sample string 1", "sample string 2" ]
text/javascript
Sample:
["sample string 1","sample string 2"]
application/xml, text/xml
Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <string>sample string 1</string> <string>sample string 2</string> </ArrayOfstring>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
LaundryViewName | Description | Type | Additional information |
---|---|---|---|
rooms | Collection of Room |
None. |
Response Formats
application/json, text/json
Sample:
{ "rooms": [ { "name": "sample string 1", "machines": { "available": { "washers": 1, "dryers": 2 }, "total": { "washers": 1, "dryers": 2 } } }, { "name": "sample string 1", "machines": { "available": { "washers": 1, "dryers": 2 }, "total": { "washers": 1, "dryers": 2 } } } ] }
text/javascript
Sample:
{"rooms":[{"name":"sample string 1","machines":{"available":{"washers":1,"dryers":2},"total":{"washers":1,"dryers":2}}},{"name":"sample string 1","machines":{"available":{"washers":1,"dryers":2},"total":{"washers":1,"dryers":2}}}]}
application/xml, text/xml
Sample:
<LaundryView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNITE.External.API.Support.Laundry"> <rooms> <Room> <machines> <available> <dryers>2</dryers> <washers>1</washers> </available> <total> <dryers>2</dryers> <washers>1</washers> </total> </machines> <name>sample string 1</name> </Room> <Room> <machines> <available> <dryers>2</dryers> <washers>1</washers> </available> <total> <dryers>2</dryers> <washers>1</washers> </total> </machines> <name>sample string 1</name> </Room> </rooms> </LaundryView>