GET api/CouncilTaxPrecept?field={field}&search={search}&exact={exact}
This returns data 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 council tax data
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="Enter your parish" /> </div> <table class="hdc-table table default" data-filter="#filter"> <thead> <tr> <th data-toggle="true" class="footable-first-column"> Town/Parish </th> <th > Precept 2018/19 (£) </th> <th > Precept 2019/20 (£) </th> <th > Tax Base 2019/20 </th> <th > Band D (£) </th> </tr> </thead> <tbody> <tr> <td> sample string 2 </td> <td> 1 </td> <td> 1 </td> <td> 1 </td> <td> 1 </td> </tr> <tr> <td> sample string 2 </td> <td> 1 </td> <td> 1 </td> <td> 1 </td> <td> 1 </td> </tr> <tr> <td> sample string 2 </td> <td> 1 </td> <td> 1 </td> <td> 1 </td> <td> 1 </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:
[ { "id": 1, "parish": "sample string 2", "precept_previous_year": 1, "precept_current_year": 1, "tax_base": 1, "band_d": 1.0 }, { "id": 1, "parish": "sample string 2", "precept_previous_year": 1, "precept_current_year": 1, "tax_base": 1, "band_d": 1.0 }, { "id": 1, "parish": "sample string 2", "precept_previous_year": 1, "precept_current_year": 1, "tax_base": 1, "band_d": 1.0 } ]
application/xml, text/xml
Sample:
<ArrayOfCouncil_Tax_Precept xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HDCAPIModel.Models"> <Council_Tax_Precept> <ID>1</ID> <band_d>1</band_d> <parish>sample string 2</parish> <precept_current_year>1</precept_current_year> <precept_previous_year>1</precept_previous_year> <tax_base>1</tax_base> </Council_Tax_Precept> <Council_Tax_Precept> <ID>1</ID> <band_d>1</band_d> <parish>sample string 2</parish> <precept_current_year>1</precept_current_year> <precept_previous_year>1</precept_previous_year> <tax_base>1</tax_base> </Council_Tax_Precept> <Council_Tax_Precept> <ID>1</ID> <band_d>1</band_d> <parish>sample string 2</parish> <precept_current_year>1</precept_current_year> <precept_previous_year>1</precept_previous_year> <tax_base>1</tax_base> </Council_Tax_Precept> </ArrayOfCouncil_Tax_Precept>
text/javascript
Sample:
([{"id":1,"parish":"sample string 2","precept_previous_year":1,"precept_current_year":1,"tax_base":1,"band_d":1.0},{"id":1,"parish":"sample string 2","precept_previous_year":1,"precept_current_year":1,"tax_base":1,"band_d":1.0},{"id":1,"parish":"sample string 2","precept_previous_year":1,"precept_current_year":1,"tax_base":1,"band_d":1.0}]);