INNER CODE UNIT · Java

api

guto-alves/loterias-api · src/main/java/com/gutotech/loteriasapi/config/SwaggerConfig.java:18

    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"))
                .license("Apache License Version 2.0")
                .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0")
                .build();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…