public class ApiDocServiceImpl extends Object implements org.opendaylight.netconf.sal.rest.doc.api.ApiDocService
NOTE: These API's need to be synchronized due to bug 1198. Thread access to the SchemaContext is not synchronized properly and thus you can end up with missing definitions without this synchronization. There are likely otherways to work around this limitation, but given that this API is a dev only tool and not dependent UI, this was the fastest work around.
| Constructor and Description |
|---|
ApiDocServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getApiExplorer(javax.ws.rs.core.UriInfo uriInfo)
Redirects to embedded swagger ui.
|
javax.ws.rs.core.Response |
getDocByModule(String module,
String revision,
javax.ws.rs.core.UriInfo uriInfo)
Generates Swagger compliant document listing APIs for module.
|
static org.opendaylight.netconf.sal.rest.doc.api.ApiDocService |
getInstance() |
javax.ws.rs.core.Response |
getListOfMounts(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getMountDocByModule(String instanceNum,
String module,
String revision,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getMountRootDoc(String instanceNum,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getRootDoc(javax.ws.rs.core.UriInfo uriInfo)
Generates index document for Swagger UI.
|
public static org.opendaylight.netconf.sal.rest.doc.api.ApiDocService getInstance()
public javax.ws.rs.core.Response getRootDoc(javax.ws.rs.core.UriInfo uriInfo)
getDocByModule() method.getRootDoc in interface org.opendaylight.netconf.sal.rest.doc.api.ApiDocServicepublic javax.ws.rs.core.Response getDocByModule(String module, String revision, javax.ws.rs.core.UriInfo uriInfo)
getDocByModule in interface org.opendaylight.netconf.sal.rest.doc.api.ApiDocServicepublic javax.ws.rs.core.Response getApiExplorer(javax.ws.rs.core.UriInfo uriInfo)
getApiExplorer in interface org.opendaylight.netconf.sal.rest.doc.api.ApiDocServicepublic javax.ws.rs.core.Response getListOfMounts(javax.ws.rs.core.UriInfo uriInfo)
getListOfMounts in interface org.opendaylight.netconf.sal.rest.doc.api.ApiDocServicepublic javax.ws.rs.core.Response getMountRootDoc(String instanceNum, javax.ws.rs.core.UriInfo uriInfo)
getMountRootDoc in interface org.opendaylight.netconf.sal.rest.doc.api.ApiDocServiceCopyright © 2019. All rights reserved.