Files
file-explorer-api-r2/src/swagger/endpoints/health.js
2025-10-28 11:50:15 +00:00

43 lines
991 B
JavaScript

/**
* Health endpoint Swagger configuration
*/
export const healthEndpoint = {
'/health': {
get: {
summary: 'Health check endpoint',
description: 'Returns the status of the API',
security: [
{ ApiKeyAuth: [] },
{ BearerAuth: [] }
],
responses: {
'200': {
description: 'API is running',
content: {
'application/json': {
schema: {
type: 'object',
properties: {
status: {
type: 'string',
example: 'ok',
},
message: {
type: 'string',
example: 'Auth SecureChat API is running',
},
version: {
type: 'string',
example: '1.0.0',
},
},
},
},
},
},
},
},
}
};