INNER CODE UNIT · Java
SwaggerConfig
guto-alves/loterias-api · src/main/java/com/gutotech/loteriasapi/config/SwaggerConfig.java:15
public class SwaggerConfig {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build()
.apiInfo(apiInfo());
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Loterias API REST")
.description("API Gratuita de resultados de jogos das Loterias CAIXA.")
.version("1.0")
.contact(new Contact("Gustavo Alves", "https://github.com/guto-alves", "gustavoalvesb.dealmeida@gmail.com"))