api-cli/templates/default.json

36 lines
927 B
JSON

{
"name": "",
"description": "Common resources to be implemented by all other services. This spec can be used as a template for other services.",
"info": {},
"imports": [],
"headers": [],
"enums": {},
"interfaces": {},
"models": {
"healthcheck": {
"description": "A simple response indicating the health status of a service.",
"fields": [
{ "name": "status", "type": "string" }
]
}
},
"unions": {},
"resources": {
"healthcheck": {
"path": "/_internal_/healthcheck",
"operations": {
"method": "GET",
"path": "/healthcheck",
"description": "Simple healthcheck endpoint to test the status of the service.",
"responses": {
"200": { "type": "healthcheck", "description": "Get the current health status of the service." }
}
}
}
},
"attributes": {},
"annotations": {
}
}