mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
New table and endpoints for service contact lists.
- Table to store meta data for the emergency contact list for a service. - Endpoint for fetching contact lists for service - Endpoint for saving contact list for service. The list will be stored in S3. The service will then be able to send emergency announcements to staff.
This commit is contained in:
16
app/service/service_contact_list_schema.py
Normal file
16
app/service/service_contact_list_schema.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from app.schema_validation.definitions import uuid
|
||||
|
||||
create_service_contact_list_schema = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "POST create service contact list schema",
|
||||
"type": "object",
|
||||
"title": "Create service contact list",
|
||||
"properties": {
|
||||
"id": uuid,
|
||||
"original_file_name": {"type": "string"},
|
||||
"row_count": {"type": "integer"},
|
||||
"template_type": {"enum": ['email', 'sms']},
|
||||
"created_by": uuid
|
||||
},
|
||||
"required": ["id", "original_file_name", "row_count", "template_type", "created_by"]
|
||||
}
|
||||
Reference in New Issue
Block a user