Katie Smith
7f4b828aff
Add tests for get_complaint_count endpoint
...
* Added unit tests for the get_complaint_count endpoint
* Updated the schema to use 'date' format instead of 'datetime'
* Updated the complaint endpoint to convert start_date and end_date to
be dates instead of strings
2018-06-27 09:11:38 +01:00
Rebecca Law
28beeebbf4
Added a query and endpoint to return the count of complaints for a date-range.
...
Unit tests for complaints_rest.get_complaint_count have yet to be written.
Maybe there is a better name for the new endpoint.
2018-06-27 09:11:38 +01:00
Rebecca Law
e638653f11
When we get complaints we'd like to know how many we get in a day or other date range, so if there is a spike in complaints we can act on it.
...
Add new endpoint to return the number of complaints in a date range.
Unit tests to follow in the next commit.
2018-06-27 09:11:38 +01:00
Rebecca Law
64f077f2f4
New endpoint to return data for complaints.
2018-06-05 14:25:24 +01:00