GET api/Waste?field={field}&search={search}&exact={exact}
This returns waste types where the specified field contains the specified search text or equals the search text if exact = true.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
field | The Name of the field to search against |
Define this parameter in the request URI. |
search | The text to search for |
Define this parameter in the request URI. |
exact | Set to true if match must be exact |
Define this parameter in the request URI. |
Response Information
filtered list of waste
Response body formats
text/html
Sample:
<div class="input-group"> <label class="sr-only" for="filter">Filter</label> <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" alt="sample string 2" /> </td> <td class="search-only"> sample string 5 </td> <td> 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" alt="sample string 2" /> </td> <td class="search-only"> sample string 5 </td> <td> 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" alt="sample string 2" /> </td> <td class="search-only"> sample string 5 </td> <td> 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"}]);