Logo
Explore Help
Sign In
darkhelm/notifications-api
1
0
Fork 0
You've already forked notifications-api
mirror of https://github.com/GSA/notifications-api.git synced 2025-12-27 19:01:32 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
02c824a980db5b3c11294de0eca663452bdb2da3
notifications-api/app/complaint/complaint_schema.py

12 lines
368 B
Python
Raw Normal View History

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-07 10:30:50 +01:00
complaint_count_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "complaint count request schema",
"type": "object",
"title": "Complaint count request",
"properties": {
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-12 12:10:58 +01:00
"start_date": {"type": ["string", "null"], "format": "date"},
"end_date": {"type": ["string", "null"], "format": "date"},
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-07 10:30:50 +01:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 3403ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API