mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
25 lines
832 B
Python
25 lines
832 B
Python
from app.enums import TemplateType
|
|
from app.v2.template.template_schemas import get_template_by_id_response as template
|
|
|
|
get_all_template_request = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "request schema for parameters allowed when getting all templates",
|
|
"type": "object",
|
|
"properties": {"type": {"enum": list(TemplateType)}},
|
|
"additionalProperties": False,
|
|
}
|
|
|
|
get_all_template_response = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "GET response schema when getting all templates",
|
|
"type": "object",
|
|
"properties": {
|
|
"templates": {
|
|
"type": "array",
|
|
"items": {"type": "object", "$ref": "#/definitions/template"},
|
|
}
|
|
},
|
|
"required": ["templates"],
|
|
"definitions": {"template": template},
|
|
}
|