-
-
Notifications
You must be signed in to change notification settings - Fork 584
Open
Description
Is your feature request related to a problem? Please describe.
- The actuator endpoints are only available if the management port is different.
Describe the solution you'd like
- Simply include the relevant API starter (either MVC or WebFlux) and configure
management.endpoints.web.exposure.include=openapito expose the openapi document endpoint (either only the application's openapi spec, or both the application's API and actuator API ifspringdoc.show-actuator=true). - The current requirement of having a different management port for actuator endpoints is counter-intuitive and not how actuator endpoints are normally configured (I believe the
@ConditionalOnEnabledEndpoint("openapi")can be leveraged to start up the actuator endpoints and other beans for actuator when required, and then@ConditionalOnMissingBeanto fallback if actuator endpoints aren't enabled) - These same above points should be applicable for
/actuator/swagger-uitoo, only needing to add swagger-ui to themanagement.endpoints.web.exposure.includelist.
Describe alternatives you've considered
- I have tried copying and pasting
OpenApiActuatorResourcebean definition code into my project, and then setspringdoc.enable-default-api-docs=false. The API works, but the swagger-ui isn't working. - I also tried to set
springdoc.api-docs.path=/actuator/openapibut the endpoint is not included in the actuator discovery endpoint response (/actuator) or other actuator config options since the configuration setup is not using proper actuator configuration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels