1 |
56340
|
michele.ar
|
package eu.dnetlib.organizations.controller;
|
2 |
|
|
|
3 |
|
|
import org.springframework.stereotype.Controller;
|
4 |
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
5 |
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
6 |
|
|
|
7 |
|
|
@Controller
|
8 |
|
|
public class SwaggerController {
|
9 |
|
|
|
10 |
56360
|
michele.ar
|
@RequestMapping(value = { "/apidoc", "/api-doc", "/doc", "/swagger" }, method = RequestMethod.GET)
|
11 |
56340
|
michele.ar
|
public String apiDoc() {
|
12 |
|
|
return "redirect:swagger-ui.html";
|
13 |
|
|
}
|
14 |
|
|
}
|