2021-01-25 14:16:37 +01:00
|
|
|
package eu.dnetlib.data.mdstore.manager.controller;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
public class SwaggerController {
|
|
|
|
|
2021-03-04 15:33:32 +01:00
|
|
|
@RequestMapping(value = {
|
|
|
|
"/apidoc", "/api-doc", "/doc", "/swagger"
|
|
|
|
}, method = RequestMethod.GET)
|
2021-01-25 14:16:37 +01:00
|
|
|
public String apiDoc() {
|
2022-08-26 09:39:45 +02:00
|
|
|
return "redirect:swagger-ui/index.html";
|
2021-01-25 14:16:37 +01:00
|
|
|
}
|
|
|
|
}
|