@@ -0,0 +1,1085 @@
+package io.springmvcrest;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0Aimport springfox.documentation.builders.PathSelectors;%0Aimport springfox.documentation.builders.RequestHandlerSelectors;%0Aimport springfox.documentation.service.ApiInfo;%0Aimport springfox.documentation.service.Contact;%0Aimport springfox.documentation.spi.DocumentationType;%0Aimport springfox.documentation.spring.web.plugins.Docket;%0Aimport springfox.documentation.swagger2.annotations.EnableSwagger2;%0A%0A@Configuration%0A@EnableSwagger2%0Apublic class SwaggerConfig %7B%0A%0A%09@Bean%0A%09public Docket api() %7B%0A%0A%09%09return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())%0A%09%09%09%09.paths(PathSelectors.any()).build().apiInfo(apInfo());%0A%09%7D%0A%0A%09private ApiInfo apInfo() %7B%0A%0A%09%09ApiInfo info = new ApiInfo(%22Sprng-REST%22, %22A practice for fun project using springMVC%22, %221.0.0%22, %22T&C%22,%0A%09%09%09%09new Contact(%22kauhsik nandhan%22, %22kaushiknandhan@gmail.com%22, %22kaushiknandhan@gmail.com%22), %22MIT%22,%0A%09%09%09%09%22https://opensource.org/licenses/MIT%22);%0A%09%09return info;%0A%09%7D%0A%0A%7D%0A

add swagger configuration file