21 lines
673 B
Java
21 lines
673 B
Java
|
package stirling.software.SPDF.config;
|
||
|
|
||
|
import org.springframework.context.annotation.Bean;
|
||
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
||
|
import io.swagger.v3.oas.models.Components;
|
||
|
import io.swagger.v3.oas.models.OpenAPI;
|
||
|
import io.swagger.v3.oas.models.info.Info;
|
||
|
import io.swagger.v3.oas.models.info.License;
|
||
|
|
||
|
@Configuration
|
||
|
public class OpenApiConfig {
|
||
|
|
||
|
@Bean
|
||
|
public OpenAPI customOpenAPI() {
|
||
|
return new OpenAPI().components(new Components()).info(
|
||
|
new Info().title("Your API Title").version("1.0.0").description("Your API Description").license(new License().name("Your License Name").url("Your License URL")));
|
||
|
}
|
||
|
|
||
|
}
|