New dao and endpoints to create and update service data retention.

This commit is contained in:
Rebecca Law
2018-07-11 17:02:49 +01:00
parent e4cc90e585
commit e2a1dfeb31
7 changed files with 302 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
add_service_data_retention_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST service data retention schema",
"title": "Add service data retention for notification type api",
"type": "object",
"properties": {
"days_of_retention": {"type": "integer"},
"notification_type": {"enum": ["sms", "letter", "email"]},
},
"required": ["days_of_retention", "notification_type"]
}
update_service_data_retention_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST service data retention schema",
"title": "Update service data retention for notification type api",
"type": "object",
"properties": {
"days_of_retention": {"type": "integer"},
},
"required": ["days_of_retention"]
}