| 19 | //@Configuration |
| 20 | //@ConditionalOnProperty(havingValue = "") |
| 21 | @OpenAPIDefinition(info = @Info(title = "Rocket PT", |
| 22 | description = "A Flexible and Efficient private tracker", |
| 23 | version = "v1")) |
| 24 | @SecurityScheme( |
| 25 | name = "bearerAuth", |
| 26 | type = SecuritySchemeType.HTTP, |
| 27 | scheme = "bearer" |
| 28 | ) |
| 29 | public class OpenApiConfig { |
| 30 | |
| 31 | @Bean |
| 32 | public OpenAPI getOpenAPI() { |
| 33 | return new OpenAPI().components(new Components() |
| 34 | .addHeaders(Constants.TOKEN_HEADER_NAME, |
| 35 | new Header().description("Auth header").schema(new StringSchema()))); |
| 36 | } |
| 37 | |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected