@Controller @RequestMapping(value="/plugin/swagger") public class SwaggerController extends PluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
SwaggerController(org.molgenis.data.meta.MetaDataService metaDataService,
org.molgenis.security.core.token.TokenService tokenService) |
| Modifier and Type | Method and Description |
|---|---|
String |
init(org.springframework.ui.Model model)
Serves the Swagger UI which allows you to try out the documented endpoints.
|
String |
swagger(org.springframework.ui.Model model,
javax.servlet.http.HttpServletResponse response)
Serves the Swagger description of the REST API.
|
getId, getPluginSettings, getUripublic static final String URI
public SwaggerController(org.molgenis.data.meta.MetaDataService metaDataService,
org.molgenis.security.core.token.TokenService tokenService)
@GetMapping public String init(org.springframework.ui.Model model)
@GetMapping(value="/swagger.yml",
produces="text/yaml")
public String swagger(org.springframework.ui.Model model,
javax.servlet.http.HttpServletResponse response)
Copyright © 2017. All rights reserved.