Fix swagger

This commit is contained in:
Anton Romanov 2025-03-26 13:20:15 +04:00
parent 594cfcf38a
commit c095f28d57
2 changed files with 1 additions and 22 deletions

View File

@ -42,7 +42,7 @@ dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310'
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.6.5'
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.4'
implementation group: 'org.webjars', name: 'jquery', version: '3.6.0'
implementation group: 'org.webjars', name: 'bootstrap', version: '4.6.0'

View File

@ -1,21 +0,0 @@
package ru.ulstu.configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class SwaggerConfiguration {
private final Logger log = LoggerFactory.getLogger(SwaggerConfiguration.class);
@Bean
public GroupedOpenApi swaggerApi() {
log.info("Creating Swagger API configuration bean");
return GroupedOpenApi.builder()
.group("timetable-api")
.pathsToMatch(ApiConfiguration.API_1_0 + "**")
.build();
}
}