add schema and hook up blueprint

This commit is contained in:
Leo Hemsted
2018-02-19 15:03:36 +00:00
committed by Rebecca Law
parent 5b71d2f36e
commit 0d9aa5c531
5 changed files with 59 additions and 52 deletions

View File

@@ -31,3 +31,27 @@ post_link_service_to_organisation_schema = {
},
"required": ["service_id"]
}
post_create_invited_org_user_status_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST create organisation invite schema",
"type": "object",
"properties": {
"email_address": {"type": "string", "format": "email_address"},
"invited_by": uuid,
"invite_link_host": {"type": "string"}
},
"required": ["email_address", "invited_by"]
}
post_update_invited_org_user_status_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST update organisation invite schema",
"type": "object",
"properties": {
"status": {"type": "string"}
},
"required": ["status"]
}