henryz2004 commited on
Commit
6586faf
·
1 Parent(s): 6c70727

adds healthz path back to openapi,testing

Browse files
Files changed (1) hide show
  1. openapi.yaml +20 -0
openapi.yaml CHANGED
@@ -16,6 +16,26 @@ schemes:
16
  - "http"
17
 
18
  paths:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  /chat:
21
  post:
 
16
  - "http"
17
 
18
  paths:
19
+ /healthz:
20
+ get:
21
+ summary: "Health check endpoint to verify if the server is alive."
22
+ description: "Returns a simple status message to indicate that the server is running."
23
+ operationId: "healthCheck"
24
+ produces:
25
+ - "application/json"
26
+ responses:
27
+ 200:
28
+ description: "Server is alive and responding."
29
+ schema:
30
+ type: object
31
+ properties:
32
+ status:
33
+ type: string
34
+ example: "alive"
35
+ default:
36
+ description: "Unexpected error"
37
+ schema:
38
+ $ref: "#/definitions/ErrorResponse"
39
 
40
  /chat:
41
  post: