public class ApiDocServiceImpl extends Object implements 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(MountPointSwaggerGeneratorDraft02 mountPointSwaggerGeneratorDraft02,
MountPointSwaggerGeneratorRFC8040 mountPointSwaggerGeneratorRFC8040,
ApiDocGeneratorDraftO2 apiDocGeneratorDraft02,
ApiDocGeneratorRFC8040 apiDocGeneratorRFC8040) |
| 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.
|
javax.ws.rs.core.Response |
getListOfMounts(javax.ws.rs.core.UriInfo uriInfo)
Generates index document for Swagger UI.
|
javax.ws.rs.core.Response |
getMountDocByModule(String instanceNum,
String module,
String revision,
javax.ws.rs.core.UriInfo uriInfo)
Generates Swagger compliant document listing APIs for module.
|
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 ApiDocServiceImpl(MountPointSwaggerGeneratorDraft02 mountPointSwaggerGeneratorDraft02, MountPointSwaggerGeneratorRFC8040 mountPointSwaggerGeneratorRFC8040, ApiDocGeneratorDraftO2 apiDocGeneratorDraft02, ApiDocGeneratorRFC8040 apiDocGeneratorRFC8040)
public javax.ws.rs.core.Response getRootDoc(javax.ws.rs.core.UriInfo uriInfo)
getDocByModule() method.getRootDoc in interface ApiDocServicepublic javax.ws.rs.core.Response getDocByModule(String module, String revision, javax.ws.rs.core.UriInfo uriInfo)
getDocByModule in interface ApiDocServicepublic javax.ws.rs.core.Response getApiExplorer(javax.ws.rs.core.UriInfo uriInfo)
getApiExplorer in interface ApiDocServicepublic javax.ws.rs.core.Response getListOfMounts(javax.ws.rs.core.UriInfo uriInfo)
ApiDocService getDocByModule() method.getListOfMounts in interface ApiDocServicepublic javax.ws.rs.core.Response getMountRootDoc(String instanceNum, javax.ws.rs.core.UriInfo uriInfo)
getMountRootDoc in interface ApiDocServicepublic javax.ws.rs.core.Response getMountDocByModule(String instanceNum, String module, String revision, javax.ws.rs.core.UriInfo uriInfo)
ApiDocServicegetMountDocByModule in interface ApiDocServiceCopyright © 2019 OpenDaylight. All rights reserved.