Skip to content
Snippets Groups Projects
Commit 8e6686ff authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Swagger working (need some cleaning) -> check <BASE URL>/swagger-ui.html

parent cc9b3879
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,6 @@
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey-jaxrs</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
......
......@@ -56,6 +56,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.util.WebUtils;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
......@@ -73,6 +74,7 @@ import java.security.Principal;
@EnableOAuth2Client
@Api(value = "/", description = "MIP API")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringMVCServerCodegen", date = "2016-01-06T09:32:22.266Z")
@EnableSwagger2 // available at <BASE URL>/swagger-ui.html
public class MIPApplication extends WebSecurityConfigurerAdapter {
@Autowired
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment