We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
springdoc: api-docs: path: /v3/api-docs swagger-ui: path: /swagger-ui.html security-schemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT
like we already defined on config class and RESTcontroller
@Configuration public class SwaggerConfig { @Bean public OpenAPI customOpenAPI() { return new OpenAPI().components(new Components() .addSecuritySchemes("basicScheme", new SecurityScheme() .type(SecurityScheme.Type.HTTP).bearerFormat("JWT").scheme("bearer"))); } } --- @OpenAPIDefinition(security = @SecurityRequirement(name = "bearerScheme")) @Slf4j @RestController @RequestMapping("/v1") @RequiredArgsConstructor public class ProfileRestController {
{ "openapi": "3.0.1", "servers": [ { "url": "http://localhost:53646", "description": "Generated server url" } ], "security": [ { "bearerScheme": [] } ],
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
like we already defined on config class and RESTcontroller
The text was updated successfully, but these errors were encountered: