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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user