Add healthcheck on System Resource (#22974)

* Add healthcheck on System Resource

* Exclude from filtering
This commit is contained in:
Mohit Yadav 2025-08-19 12:55:55 +05:30 committed by GitHub
parent 1b36d74570
commit 5c4e3f365b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -469,4 +469,15 @@ public class SystemResource {
public ValidationResponse validate() { public ValidationResponse validate() {
return systemRepository.validateSystem(applicationConfig, pipelineServiceClient, jwtFilter); return systemRepository.validateSystem(applicationConfig, pipelineServiceClient, jwtFilter);
} }
@GET
@Path("/health")
@Operation(
operationId = "healthCheck",
summary = "Health check endpoint",
description = "Simple health check endpoint that returns 200 OK",
responses = {@ApiResponse(responseCode = "200", description = "Service is healthy")})
public Response healthCheck() {
return Response.ok("OK").build();
}
} }

View File

@ -91,6 +91,7 @@ public class JwtFilter implements ContainerRequestFilter {
"v1/system/config/authorizer", "v1/system/config/authorizer",
"v1/system/config/customUiThemePreference", "v1/system/config/customUiThemePreference",
"v1/system/config/auth", "v1/system/config/auth",
"v1/system/health",
"v1/users/signup", "v1/users/signup",
"v1/system/version", "v1/system/version",
"v1/users/registrationConfirmation", "v1/users/registrationConfirmation",