api-cli/templates/default.json

39 lines
880 B
JSON

{
"apidoc": {
},
"name": "service",
"description": "description",
"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": {}
}