Package io.lighty.swagger
Class ApiDocServiceRFC8040
- java.lang.Object
-
- io.lighty.swagger.ApiDocServiceLightyImpl
-
- io.lighty.swagger.ApiDocServiceRFC8040
-
- All Implemented Interfaces:
org.opendaylight.netconf.sal.rest.doc.api.ApiDocService
public class ApiDocServiceRFC8040 extends ApiDocServiceLightyImpl
-
-
Constructor Summary
Constructors Constructor Description ApiDocServiceRFC8040(org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorRFC8040 mountPointSwaggerGeneratorRFC8040, org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorRFC8040 apiDocGeneratorRFC8040)
-
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.
-
-