38 lines
727 B
TypeScript
38 lines
727 B
TypeScript
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",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|