mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 18:22:17 -05:00
New dao and endpoints to create and update service data retention.
This commit is contained in:
23
app/service/service_data_retention_schema.py
Normal file
23
app/service/service_data_retention_schema.py
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user