Quarkus: how to test secured API endpoints with swagger-ui
问题 We have a Quarkus application with some secured endpoints. For development and easy testing without much effort, we would like to use Swagger UI as described at https://quarkus.io/guides/openapi-swaggerui. But this seems to only work for unprotected endpoints. Is there a way to also make request to protected endpoints in Swagger UI? 回答1: You need to add a security scheme to your specification: One way to do it is by using annotations: @OpenAPIDefinition(info = @Info(title = "My API", version