org.lockss.laaws.poller.config.SwaggerDocumentationConfig Maven / Gradle / Ivy
package org.lockss.laaws.poller.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
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 SwaggerDocumentationConfig {
@Bean
public OpenAPI openApi() {
return new OpenAPI()
.info(new Info()
.title("LOCKSS Poller Service REST API")
.description("REST API of the LOCKSS Poller Service")
.termsOfService("https://www.lockss.org/")
.version("2.0.0")
.license(new License()
.name("BSD-3-Clause")
.url("https://opensource.org/licenses/BSD-3-Clause"))
.contact(new io.swagger.v3.oas.models.info.Contact()
.email("[email protected]")));
}
}