btcpayserver/BTCPayServer/wwwroot/swagger/v1/swagger.template.health.json
d11n 7db510b5ca
Swagger: Fix errors, warnings and formatting (#6410)
* Fix linting errors

* Fix linting warnings

* Fix inconsistend indentation and unify formatting

* Extract StoreId schemas

* Extract CryptoCode parameter

* Extract AppId parameter

* More StoreId parameter references

* Extract WebhookId and DeliveryId parameters

* Extract InvoiceId parameter

* Formatting
2024-11-20 22:46:55 +09:00

60 lines
1.9 KiB
JSON

{
"paths": {
"/api/v1/health": {
"get": {
"tags": [
"Health"
],
"summary": "Get health status",
"description": "Check the instance health status",
"operationId": "Health_GetHealth",
"responses": {
"200": {
"description": "Instance is up",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationHealthData"
}
}
}
},
"403": {
"description": "If you are authenticated but forbidden to get the data"
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
},
"security": []
}
}
},
"components": {
"schemas": {
"ApplicationHealthData": {
"type": "object",
"additionalProperties": false,
"properties": {
"synchronized": {
"type": "boolean",
"description": "True if the instance is fully synchronized, according to NBXplorer"
}
}
}
}
},
"tags": [
{
"name": "Health",
"description": "Health operations"
}
]
}