fi.evolver.basics.spring.common.HealthCheckController Maven / Gradle / Ivy
package fi.evolver.basics.spring.common;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import fi.evolver.basics.spring.http.MessageType;
import fi.evolver.basics.spring.log.LogPolicy;
import fi.evolver.basics.spring.log.LogPolicy.Policy;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
@RestController
public class HealthCheckController {
@LogPolicy(Policy.NONE)
@MessageType("HealthCheck")
@Operation(summary = "Check the health of the application")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "The application is up and running"),
})
@GetMapping("/health")
public String check() {
return "OK";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy