scaler added and confirmed builds work
This commit is contained in:
37
backend/src/scaler/specs/health.spec.ts
Normal file
37
backend/src/scaler/specs/health.spec.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { OpenAPIV3_1 } from "openapi-types";
|
||||
|
||||
export const healthSpec: OpenAPIV3_1.PathsObject = {
|
||||
"/": {
|
||||
get: {
|
||||
summary: "Health check",
|
||||
description: "Check if the API is running",
|
||||
//tags: ["Health"],
|
||||
responses: {
|
||||
"200": {
|
||||
description: "API is healthy",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: {
|
||||
type: "boolean",
|
||||
example: true,
|
||||
},
|
||||
message: {
|
||||
type: "string",
|
||||
example: "LST v3 is running",
|
||||
},
|
||||
timestamp: {
|
||||
type: "string",
|
||||
format: "date-time",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user