Class SwaggerWebServices
java.lang.Object
io.vertigo.vega.impl.webservice.catalog.SwaggerWebServices
- All Implemented Interfaces:
io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,WebServices
Swagger WebService to list services published.
- Author:
- npiedeloup (22 juil. 2014 11:12:02)
- See Also:
-
- "https://github.com/wordnik/swagger-spec/blob/master/versions/2.0.md"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSwapperApi(jakarta.servlet.http.HttpServletRequest request) voidgetSwapperUi(jakarta.servlet.http.HttpServletResponse response) Redirect to index.html.voidgetSwapperUi(String resourceUrl, jakarta.servlet.http.HttpServletResponse response) Return a swagger static resources.voidgetSwapperUi(String resourcePathUrl, String resourceUrl, jakarta.servlet.http.HttpServletResponse response) Return a swagger static resources.voidgetSwapperUiEmpty(jakarta.servlet.http.HttpServletResponse response) Redirect to index.html.
-
Constructor Details
-
SwaggerWebServices
public SwaggerWebServices()
-
-
Method Details
-
getSwapperApi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerApi") public Map<String,Object> getSwapperApi(jakarta.servlet.http.HttpServletRequest request) - Parameters:
request- HttpRequest- Returns:
- Api representation in Swagger definition
-
getSwapperUi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi") public void getSwapperUi(jakarta.servlet.http.HttpServletResponse response) throws IOException Redirect to index.html.- Parameters:
response- HttpResponse- Throws:
IOException- Exception
-
getSwapperUiEmpty
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi/") public void getSwapperUiEmpty(jakarta.servlet.http.HttpServletResponse response) throws IOException Redirect to index.html.- Parameters:
response- HttpResponse- Throws:
IOException- Exception
-
getSwapperUi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi/{resourceUrl}") public void getSwapperUi(@PathParam("resourceUrl") String resourceUrl, jakarta.servlet.http.HttpServletResponse response) throws IOException Return a swagger static resources.- Parameters:
resourceUrl- Resource nameresponse- HttpResponse- Throws:
IOException- Exception
-
getSwapperUi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi/{resourcePathUrl}/{resourceUrl}") public void getSwapperUi(@PathParam("resourcePathUrl") String resourcePathUrl, @PathParam("resourceUrl") String resourceUrl, jakarta.servlet.http.HttpServletResponse response) throws IOException Return a swagger static resources.- Parameters:
resourcePathUrl- Resource pathresourceUrl- Resource nameresponse- HttpResponse- Throws:
IOException- Exception
-