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
public final class SwaggerWebServices extends Object implements 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 Constructor Description SwaggerWebServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getSwapperApi(javax.servlet.http.HttpServletRequest request)voidgetSwapperUi(String resourcePathUrl, String resourceUrl, javax.servlet.http.HttpServletResponse response)Return a swagger static resources.voidgetSwapperUi(String resourceUrl, javax.servlet.http.HttpServletResponse response)Return a swagger static resources.voidgetSwapperUi(javax.servlet.http.HttpServletResponse response)Redirect to index.html.voidgetSwapperUiEmpty(javax.servlet.http.HttpServletResponse response)Redirect to index.html.
-
-
-
Method Detail
-
getSwapperApi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerApi") public Map<String,Object> getSwapperApi(javax.servlet.http.HttpServletRequest request)
- Parameters:
request- HttpRequest- Returns:
- Api representation in Swagger definition
-
getSwapperUi
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi") public void getSwapperUi(javax.servlet.http.HttpServletResponse response) throws IOException
Redirect to index.html.- Parameters:
response- HttpResponse- Throws:
IOException- Exception
-
getSwapperUiEmpty
@SessionLess @AnonymousAccessAllowed @GET("/swaggerUi/") public void getSwapperUiEmpty(javax.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, javax.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, javax.servlet.http.HttpServletResponse response) throws IOException
Return a swagger static resources.- Parameters:
resourcePathUrl- Resource pathresourceUrl- Resource nameresponse- HttpResponse- Throws:
IOException- Exception
-
-