@@ -0,0 +1,1783 @@
+package org.example.seed.config;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.context.annotation.Profile;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0Aimport springfox.documentation.builders.PathSelectors;%0Aimport springfox.documentation.builders.RequestHandlerSelectors;%0Aimport springfox.documentation.spi.DocumentationType;%0Aimport springfox.documentation.spring.web.plugins.Docket;%0Aimport springfox.documentation.swagger2.annotations.EnableSwagger2;%0A%0Aimport java.time.LocalDate;%0A%0A/**%0A * Created by PINA on 27/06/2017.%0A */%0A@Configuration%0A@EnableSwagger2%0A@Profile(%22local%22)%0Apublic class SwaggerConfig extends WebMvcConfigurerAdapter %7B%0A%0A    @Bean%0A    public Docket configuration() %7B%0A        return new Docket(DocumentationType.SWAGGER_2)%0A                .select()%0A                .apis(RequestHandlerSelectors%0A                        .basePackage(%22org.example.seed.rest%22))%0A                .paths(PathSelectors.any())%0A                .build()%0A                .directModelSubstitute(LocalDate.class, String.class)%0A                .genericModelSubstitutes(ResponseEntity.class);%0A    %7D%0A%0A    @Override%0A    public void addResourceHandlers(final ResourceHandlerRegistry resourceHandlerRegistry) %7B%0A        resourceHandlerRegistry%0A                .addResourceHandler(%22swagger-ui.html%22)%0A                .addResourceLocations(%22classpath:/META-INF/resources/%22);%0A%0A        resourceHandlerRegistry%0A                .addResourceHandler(%22/webjars/**%22)%0A                .addResourceLocations(%22classpath:/META-INF/resources/webjars/%22);%0A    %7D%0A%7D%0A

create SwaggerConfig to Document the REST API