GET api/Companies

Gets all available companies. If no companies are available a 404 will be returned.

Response Information

List of available Companies. If no companies available HTTP Status 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:
<ArrayOfCompanyDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs">
  <CompanyDTO>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </CompanyDTO>
  <CompanyDTO>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </CompanyDTO>
  <CompanyDTO>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </CompanyDTO>
</ArrayOfCompanyDTO>