GET api/Companies/{id}
Gets the company with the given id. If company is not found a 404 will be returned.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | Id of company to look for |
Define this parameter in the request URI. |
Response Information
Company for given id or HTTP Status 404 if not found
Response body formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2"
}
application/xml, text/xml
Sample:
<CompanyDTO 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> </CompanyDTO>