1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-12 18:50:11 +01:00
Stirling-PDF/src/main/java/stirling/software/SPDF/config/OpenApiConfig.java

23 lines
801 B
Java
Raw Normal View History

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;
@Configuration
public class OpenApiConfig {
@Bean
public OpenAPI customOpenAPI() {
2023-05-08 16:26:41 +02:00
String version = getClass().getPackage().getImplementationVersion();
version = (version != null) ? version : "1.0.0";
return new OpenAPI().components(new Components()).info(
2023-05-08 16:26:41 +02:00
new Info().title("Stirling PDF API").version(version).description("API documentation for all Server-Side processing.\nPlease note some functionality might be UI only and missing from here."));
}
}