-
-
Notifications
You must be signed in to change notification settings - Fork 543
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I have one method marked as multiple endpoints : /
, /ping
, /health
Like this
@Tag(name = OpenApiConfig.TAG_HEALTH_CHECK, description = "Health check / ping API")
@RestController
public class DefaultHealthCheckApi {
@Operation(summary = "Check server status", description = "Check server status, will return 200 with simple string if alive. Do nothing else.")
@GetMapping(value = { "/ping", "/health", "/" }, produces = MediaType.TEXT_PLAIN_VALUE)
public ResponseEntity<String> ping() {
return ResponseEntity.ok("Healthy");
}
}
But springdoc only generates the first (/ping
in this case)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request