GET v1/categories

Retrieves all Categories.

Request Information

Parameters

NameDescriptionAdditional information
location Filter Categories to a specific location

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "categories": [
    {
      "id": 1,
      "location": 2,
      "name": "sample string 3"
    },
    {
      "id": 1,
      "location": 2,
      "name": "sample string 3"
    },
    {
      "id": 1,
      "location": 2,
      "name": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <Categories>
    <Category>
      <Id>1</Id>
      <Location>2</Location>
      <Name>sample string 3</Name>
    </Category>
    <Category>
      <Id>1</Id>
      <Location>2</Location>
      <Name>sample string 3</Name>
    </Category>
    <Category>
      <Id>1</Id>
      <Location>2</Location>
      <Name>sample string 3</Name>
    </Category>
  </Categories>
</Resources>