public final class SwaggerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATA_TYPE_BOOLEAN |
static String |
DATA_TYPE_INTEGER |
static String |
DATA_TYPE_NUMBER |
Constructor and Description |
---|
SwaggerUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
fetchSwaggerFromRegistry(String requestURI,
String resourcePath)
Util method to fetch a swagger resource from the registry.
|
static String |
getDataServiceSwagger(String requestURI,
org.apache.axis2.context.ConfigurationContext configurationContext,
boolean isJSON)
Fetch the swagger from registry if available or create one from scratch.
|
public static final String DATA_TYPE_INTEGER
public static final String DATA_TYPE_NUMBER
public static final String DATA_TYPE_BOOLEAN
public static String getDataServiceSwagger(String requestURI, org.apache.axis2.context.ConfigurationContext configurationContext, boolean isJSON) throws org.apache.axis2.AxisFault
requestURI
- request URI.configurationContext
- Configuration context with details.isJSON
- result format JSON or YAML.org.apache.axis2.AxisFault
- Error occurred while fetching the host details.public static String fetchSwaggerFromRegistry(String requestURI, String resourcePath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
requestURI
- request URI.resourcePath
- registry path to the resource.org.wso2.carbon.registry.core.exceptions.RegistryException
- error occured while fetching the resource from registry.Copyright © 2022 WSO2. All rights reserved.