GET api/Waste

This returns all waste data.

Response Information

Returns data about what can be collected in each waste stream

Response body formats

text/html

Sample:
<div class="input-group">
    <span class="input-group-addon">Filter</span>
    <input id="filter" type="text" class="form-control" placeholder="Search for an item" />
</div>
<table class="hdc-table table default" data-filter="#filter">
    <thead>
        <tr>
            <th data-toggle="true" class="footable-first-column">
                Item
            </th>
            <th>
                Where to dispose
            </th>
            <th>

            </th>
            <th class="search-only">
                Synonyms
            </th>
            <th>
                Notes
            </th>

        </tr>
    </thead>
    <tbody>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                            <p>sample string 3</p>
                </td>
                <td>
                        <img src="data:image/gif;base64,QEBA" />
                </td>
                <td class="search-only">
                    sample string 5
                </td>
                <td style="width:250px;">
                    sample string 4
                </td>
            </tr>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                            <p>sample string 3</p>
                </td>
                <td>
                        <img src="data:image/gif;base64,QEBA" />
                </td>
                <td class="search-only">
                    sample string 5
                </td>
                <td style="width:250px;">
                    sample string 4
                </td>
            </tr>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                            <p>sample string 3</p>
                </td>
                <td>
                        <img src="data:image/gif;base64,QEBA" />
                </td>
                <td class="search-only">
                    sample string 5
                </td>
                <td style="width:250px;">
                    sample string 4
                </td>
            </tr>
    </tbody>
    <tfoot class="hide-if-no-paging">
        <tr>
            <td colspan="6">
                <ul class="pagination pagination-centered hide-if-no-paging"></ul>
            </td>
        </tr>
    </tfoot>
</table>

application/json, text/json

Sample:
[
  {
    "bins": [
      "sample string 1",
      "sample string 2",
      "sample string 3"
    ],
    "id": 1,
    "item": "sample string 2",
    "bin": "sample string 3",
    "image": "QEBA",
    "notes": "sample string 4",
    "synonym": "sample string 5"
  },
  {
    "bins": [
      "sample string 1",
      "sample string 2",
      "sample string 3"
    ],
    "id": 1,
    "item": "sample string 2",
    "bin": "sample string 3",
    "image": "QEBA",
    "notes": "sample string 4",
    "synonym": "sample string 5"
  },
  {
    "bins": [
      "sample string 1",
      "sample string 2",
      "sample string 3"
    ],
    "id": 1,
    "item": "sample string 2",
    "bin": "sample string 3",
    "image": "QEBA",
    "notes": "sample string 4",
    "synonym": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWaste xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HDCAPIModel.Models">
  <Waste>
    <Bin>sample string 3</Bin>
    <Bins xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
      <d3p1:string>sample string 3</d3p1:string>
    </Bins>
    <ID>1</ID>
    <Image>QEBA</Image>
    <Item>sample string 2</Item>
    <Notes>sample string 4</Notes>
    <Synonym>sample string 5</Synonym>
  </Waste>
  <Waste>
    <Bin>sample string 3</Bin>
    <Bins xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
      <d3p1:string>sample string 3</d3p1:string>
    </Bins>
    <ID>1</ID>
    <Image>QEBA</Image>
    <Item>sample string 2</Item>
    <Notes>sample string 4</Notes>
    <Synonym>sample string 5</Synonym>
  </Waste>
  <Waste>
    <Bin>sample string 3</Bin>
    <Bins xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
      <d3p1:string>sample string 3</d3p1:string>
    </Bins>
    <ID>1</ID>
    <Image>QEBA</Image>
    <Item>sample string 2</Item>
    <Notes>sample string 4</Notes>
    <Synonym>sample string 5</Synonym>
  </Waste>
</ArrayOfWaste>

text/javascript

Sample:
([{"bins":["sample string 1","sample string 2","sample string 3"],"id":1,"item":"sample string 2","bin":"sample string 3","image":"QEBA","notes":"sample string 4","synonym":"sample string 5"},{"bins":["sample string 1","sample string 2","sample string 3"],"id":1,"item":"sample string 2","bin":"sample string 3","image":"QEBA","notes":"sample string 4","synonym":"sample string 5"},{"bins":["sample string 1","sample string 2","sample string 3"],"id":1,"item":"sample string 2","bin":"sample string 3","image":"QEBA","notes":"sample string 4","synonym":"sample string 5"}]);