Organisation services API endpoints

This commit is contained in:
Ken Tsang
2018-02-10 01:37:17 +00:00
parent 60f96ab598
commit 44f9143d08
6 changed files with 154 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
from app.schema_validation.definitions import uuid
post_create_organisation_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST organisation schema",
@@ -19,3 +21,13 @@ post_update_organisation_schema = {
},
"required": []
}
post_link_service_to_organisation_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST link service to organisation schema",
"type": "object",
"properties": {
"service_id": uuid
},
"required": ["service_id"]
}