Add a view function for pre-compiled PDF letters

Adds a separate view function that is registered under the same
route as existing letter POST notification.
This commit is contained in:
Alexey Bezhan
2018-02-23 10:38:36 +00:00
parent e659253b01
commit 5327298371
3 changed files with 113 additions and 2 deletions

View File

@@ -206,7 +206,6 @@ post_email_response = {
"required": ["id", "content", "uri", "template"]
}
post_letter_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST letter notification schema",
@@ -221,6 +220,19 @@ post_letter_request = {
"additionalProperties": False
}
post_precompiled_letter_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST precompiled letter notification schema",
"type": "object",
"title": "POST v2/notifications/letter",
"properties": {
"reference": {"type": "string"},
"content": {"type": "string"}
},
"required": ["reference", "content"],
"additionalProperties": False
}
letter_content = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Letter content for POST letter notification",