mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-09-30 03:23:16 +00:00
* feat(api): stand up Hono Drizzle foundation with auth and Redocly * fix(api): bump drizzle-orm and hono node-server past audit highs * fix(api): harden auth upsert and Cognito token verification
33 lines
898 B
YAML
33 lines
898 B
YAML
get:
|
|
tags:
|
|
- Health
|
|
summary: Check API and database liveness
|
|
description: Returns ok when the process can ping the configured database.
|
|
operationId: get-health
|
|
security: []
|
|
responses:
|
|
"200":
|
|
description: API process is healthy and the database answered.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/HealthResponse
|
|
example:
|
|
status: ok
|
|
database: up
|
|
"400":
|
|
description: Bad request.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/Error
|
|
example:
|
|
error: Bad request.
|
|
"503":
|
|
description: Database ping failed.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/Error
|
|
example:
|
|
error: Database is unavailable.
|