43 lines
991 B
JavaScript
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',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
};
|