2021-03-10 13:55:06 +00:00
|
|
|
from app.schema_validation.definitions import https_url, uuid
|
2017-06-15 11:32:51 +01:00
|
|
|
|
2017-11-29 16:28:01 +00:00
|
|
|
create_service_callback_api_schema = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2017-11-29 16:28:01 +00:00
|
|
|
"description": "POST service callback/inbound api schema",
|
2017-06-15 11:32:51 +01:00
|
|
|
"type": "object",
|
2017-11-29 16:28:01 +00:00
|
|
|
"title": "Create service callback/inbound api",
|
2017-06-15 11:32:51 +01:00
|
|
|
"properties": {
|
|
|
|
|
"url": https_url,
|
|
|
|
|
"bearer_token": {"type": "string", "minLength": 10},
|
2023-08-29 14:54:30 -07:00
|
|
|
"updated_by_id": uuid,
|
2017-06-15 11:32:51 +01:00
|
|
|
},
|
2023-08-29 14:54:30 -07:00
|
|
|
"required": ["url", "bearer_token", "updated_by_id"],
|
2017-06-15 11:32:51 +01:00
|
|
|
}
|
|
|
|
|
|
2017-11-29 16:28:01 +00:00
|
|
|
update_service_callback_api_schema = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2017-11-29 16:28:01 +00:00
|
|
|
"description": "POST service callback/inbound api schema",
|
2017-06-15 11:32:51 +01:00
|
|
|
"type": "object",
|
2017-11-29 16:28:01 +00:00
|
|
|
"title": "Create service callback/inbound api",
|
2017-06-15 11:32:51 +01:00
|
|
|
"properties": {
|
|
|
|
|
"url": https_url,
|
|
|
|
|
"bearer_token": {"type": "string", "minLength": 10},
|
2023-08-29 14:54:30 -07:00
|
|
|
"updated_by_id": uuid,
|
2017-06-15 11:32:51 +01:00
|
|
|
},
|
2023-08-29 14:54:30 -07:00
|
|
|
"required": ["updated_by_id"],
|
2017-06-15 11:32:51 +01:00
|
|
|
}
|