feat: integrated swagger

This commit is contained in:
2025-06-18 03:14:51 +03:00
parent 9e8dd9bf2f
commit ec40c86e4a
8 changed files with 230 additions and 9 deletions

41
backend/docs/swagger.json Normal file
View File

@@ -0,0 +1,41 @@
{
"swagger": "2.0",
"info": {
"contact": {}
},
"paths": {
"/service/health": {
"get": {
"description": "Used internally for checking service health",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Service"
],
"summary": "Get health status",
"responses": {
"200": {
"description": "desc",
"schema": {
"$ref": "#/definitions/controllers.HealthStatus"
}
}
}
}
}
},
"definitions": {
"controllers.HealthStatus": {
"type": "object",
"properties": {
"healthy": {
"type": "boolean"
}
}
}
}
}