Package io.lighty.swagger
Class ApiDocServiceDraft02
- java.lang.Object
-
- io.lighty.swagger.ApiDocServiceLightyImpl
-
- io.lighty.swagger.ApiDocServiceDraft02
-
- All Implemented Interfaces:
org.opendaylight.netconf.sal.rest.doc.api.ApiDocService
public class ApiDocServiceDraft02 extends ApiDocServiceLightyImpl
-
-
Constructor Summary
Constructors Constructor Description ApiDocServiceDraft02(org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorDraft02 mountPointSwaggerGeneratorDraft02, org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorDraftO2 apiDocGeneratorDraft02)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetApiExplorer(javax.ws.rs.core.UriInfo uriInfo)Redirects to embedded swagger ui.javax.ws.rs.core.ResponsegetDocByModule(String module, String revision, javax.ws.rs.core.UriInfo uriInfo)Generates Swagger compliant document listing APIs for module.javax.ws.rs.core.ResponsegetRootDoc(javax.ws.rs.core.UriInfo uriInfo)Generates index document for Swagger UI.-
Methods inherited from class io.lighty.swagger.ApiDocServiceLightyImpl
getListOfMounts, getMountDocByModule, getMountRootDoc
-
-
-
-
Method Detail
-
getRootDoc
public javax.ws.rs.core.Response getRootDoc(javax.ws.rs.core.UriInfo uriInfo)
Generates index document for Swagger UI. This document lists out all modules with link to get APIs for each module. The API for each module is served bygetDocByModule()method.
-
getDocByModule
public javax.ws.rs.core.Response getDocByModule(String module, String revision, javax.ws.rs.core.UriInfo uriInfo)
Generates Swagger compliant document listing APIs for module.
-
getApiExplorer
public javax.ws.rs.core.Response getApiExplorer(javax.ws.rs.core.UriInfo uriInfo)
Redirects to embedded swagger ui.
-
-