I am using the following dependencies for Swagger:
implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: '2.2.7'
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.6.12'
My Swagger configuration code is as follows:
@Configuration
public class SwaggerConfig {
@Bean
public GroupedOpenApi publicApi() {
return GroupedOpenApi.builder()
.group("All Apis")
.pathsToMatch("/api/v0/**")
.build();
}
@Bean
public OpenAPI springShopOpenAPI() {
return new OpenAPI()
.info(new Info()
.title("Kaim Tutorial API")
.description("Kaim Tutorial All Apis.")
.version("v0.0.1")
.license(new License().name("Apache 2.0").url("http://springdoc.org")))
.externalDocs(new ExternalDocumentation()
.description("SpringShop Wiki Documentation")
.url("https://springshop.wiki.github.org/docs"));
}
}
What change do I need to make to show every API request duration time in Swagger UI?
I have checked other documentations but they are either for Swagger 2.0 or something that does not use OpenAPI.