Merged in feature/healthmove (pull request #165)

Move health endpoint from OpenAPI spec to direct implementation

* Move health endpoint from OpenAPI spec to direct implementation

- Removed HealthService tag from OpenAPI spec
- Removed /health path from OpenAPI spec
- Removed health.go and health_test.go files from api/queryAPI
- Added direct health endpoint in internal/server/api/listener.go
- Updated validator options to skip validation for the /health endpoint
- Added test for health endpoint in internal/server/api/listener_test.go
- Regenerated API code from the updated OpenAPI spec
This commit is contained in:
Michael McGuinness
2025-06-10 20:32:10 +00:00
parent e544f08505
commit d4a65ccf78
11 changed files with 280 additions and 423 deletions
-25
View File
@@ -27,33 +27,8 @@ tags:
description: Operations related to exports
- name: AuthService
description: Operations related to authentication
- name: HealthService
description: Operations related to health
paths:
/health:
get:
operationId: isHealthy
tags:
- HealthService
summary: Provide health endpoint
description: See if the service is up and running
security:
- {}
responses:
"200":
description: Healthy service.
headers:
RateLimit:
$ref: "#/components/headers/RateLimit"
"400":
$ref: "#/components/responses/InvalidRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalError"
/client:
post: