public class BaseYangSwaggerGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
API_VERSION |
protected static String |
RESTCONF_CONTEXT_ROOT |
protected static String |
SWAGGER_VERSION |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseYangSwaggerGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRpcs(org.opendaylight.yangtools.yang.model.api.RpcDefinition rpcDefn,
List<org.opendaylight.netconf.sal.rest.doc.swagger.Api> apis,
String parentPath,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext) |
protected org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration |
createApiDeclaration(String basePath) |
protected String |
createBasePathFromUriInfo(javax.ws.rs.core.UriInfo uriInfo) |
protected org.opendaylight.netconf.sal.rest.doc.swagger.ResourceList |
createResourceList() |
protected String |
generatePath(javax.ws.rs.core.UriInfo uriInfo,
String name,
String revision) |
org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration |
getApiDeclaration(org.opendaylight.yangtools.yang.model.api.Module module,
javax.ws.rs.core.UriInfo uriInfo,
String context,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext) |
org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration |
getApiDeclaration(String moduleName,
String revision,
javax.ws.rs.core.UriInfo uriInfo,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
String context) |
protected static String |
getContent(String dataStore) |
protected String |
getDataStorePath(String dataStore,
String context) |
org.opendaylight.netconf.sal.rest.doc.swagger.ResourceList |
getResourceListing(javax.ws.rs.core.UriInfo uriInfo,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
String context)
Return list of modules converted to swagger compliant resource list.
|
protected SortedSet<org.opendaylight.yangtools.yang.model.api.Module> |
getSortedModules(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext) |
org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration |
getSwaggerDocSpec(org.opendaylight.yangtools.yang.model.api.Module module,
String basePath,
String context,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext) |
void |
setDraft(boolean draft) |
protected static final String API_VERSION
protected static final String SWAGGER_VERSION
protected static final String RESTCONF_CONTEXT_ROOT
public org.opendaylight.netconf.sal.rest.doc.swagger.ResourceList getResourceListing(javax.ws.rs.core.UriInfo uriInfo,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
String context)
protected org.opendaylight.netconf.sal.rest.doc.swagger.ResourceList createResourceList()
protected String generatePath(javax.ws.rs.core.UriInfo uriInfo, String name, String revision)
public org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration getApiDeclaration(String moduleName, String revision, javax.ws.rs.core.UriInfo uriInfo, org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext, String context)
public org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration getApiDeclaration(org.opendaylight.yangtools.yang.model.api.Module module,
javax.ws.rs.core.UriInfo uriInfo,
String context,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
protected String createBasePathFromUriInfo(javax.ws.rs.core.UriInfo uriInfo)
public org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration getSwaggerDocSpec(org.opendaylight.yangtools.yang.model.api.Module module,
String basePath,
String context,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
protected org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration createApiDeclaration(String basePath)
protected void addRpcs(org.opendaylight.yangtools.yang.model.api.RpcDefinition rpcDefn,
List<org.opendaylight.netconf.sal.rest.doc.swagger.Api> apis,
String parentPath,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
protected SortedSet<org.opendaylight.yangtools.yang.model.api.Module> getSortedModules(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
public void setDraft(boolean draft)
Copyright © 2019. All rights reserved.