2019-03-20 15:36:23 +01:00
|
|
|
package eu.dnetlib.data.mdstore.manager.controller;
|
2019-03-18 15:30:07 +01:00
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
public class SwaggerController {
|
|
|
|
|
2019-03-20 15:36:23 +01:00
|
|
|
@RequestMapping(value = { "/apidoc", "/api-doc", "/doc", "/swagger" }, method = RequestMethod.GET)
|
2019-03-18 15:30:07 +01:00
|
|
|
public String apiDoc() {
|
|
|
|
return "redirect:swagger-ui.html";
|
|
|
|
}
|
|
|
|
}
|