Files
dfops-rest-service/src/main/java/ru/resprojects/dfops/config/AppConfig.java
2023-06-11 00:29:45 +03:00

23 lines
774 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package ru.resprojects.dfops.config;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AppConfig {
public static final String DEFAULT_PAGE_LIMIT = "10";
@Bean
public OpenAPI customOpenApi() {
return new OpenAPI()
.components(new Components())
.info(new Info().title("Driver Finance Operation REST Service API").description(
"REST-сервис для приема и регистрации операций в базе данных по расчетам с водителями."));
}
}