GET api/Company/{id}/lunchrooms
Gets a list of all lunchrooms available for the requested company.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | Id of company |
Define this parameter in the request URI. |
Response Information
List of available lunchrooms or 404.
Response body formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfLunchroomDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs">
<LunchroomDTO>
<Id>1</Id>
<Name>sample string 2</Name>
</LunchroomDTO>
<LunchroomDTO>
<Id>1</Id>
<Name>sample string 2</Name>
</LunchroomDTO>
<LunchroomDTO>
<Id>1</Id>
<Name>sample string 2</Name>
</LunchroomDTO>
</ArrayOfLunchroomDTO>