GET api/Users/{id}/lunchroom
Gets the default lunchroom for the requested user. Returns a 404 if lunchroom is not yet set.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | Id of user |
Define this parameter in the request URI. |
Response Information
Default Lunchroom for requested user
Response body formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2" }
application/xml, text/xml
Sample:
<LunchroomDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs"> <Id>1</Id> <Name>sample string 2</Name> </LunchroomDTO>