Package org.molgenis.swagger.controller
Class SwaggerController
- java.lang.Object
-
- org.molgenis.web.PluginController
-
- org.molgenis.swagger.controller.SwaggerController
-
@Controller @RequestMapping("/plugin/swagger") public class SwaggerController extends org.molgenis.web.PluginControllerServes Swagger documentation of the REST API.- See Also:
- http://swagger.io/
-
-
Constructor Summary
Constructors Constructor Description SwaggerController(org.molgenis.data.meta.MetaDataService metaDataService, org.molgenis.security.core.token.TokenService tokenService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringinit(org.springframework.ui.Model model)Serves the Swagger UI which allows you to try out the documented endpoints.Stringswagger(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response)Serves the Swagger description of the REST API.
-
-
-
Field Detail
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@GetMapping public String init(org.springframework.ui.Model model)
Serves the Swagger UI which allows you to try out the documented endpoints. Sets the url parameter to the swagger yaml that describes the REST API. Creates an apiKey token for the current user.
-
swagger
@GetMapping(value="/swagger.yml", produces="text/yaml") public String swagger(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response)Serves the Swagger description of the REST API. As host, fills in the host where the controller lives. As options for the entity names, contains only those entity names that the user can actually see.
-
-