public class OpenAPIProcessor extends Object
Constructor and Description |
---|
OpenAPIProcessor(org.apache.synapse.api.API api) |
OpenAPIProcessor(org.apache.synapse.api.API api,
ServerConfig serverConfiguration) |
Modifier and Type | Method and Description |
---|---|
String |
getOpenAPISpecification(boolean isJSON)
Generate the OAS 3.0 definition for a given API.
|
String |
getUpdatedSwaggerFromApi(String existingSwagger,
boolean isJSONIn,
boolean isJSONOut)
Update a given swagger definition of the Synapse API.
|
public OpenAPIProcessor(org.apache.synapse.api.API api, ServerConfig serverConfiguration)
public OpenAPIProcessor(org.apache.synapse.api.API api)
public String getOpenAPISpecification(boolean isJSON) throws org.apache.axis2.AxisFault
isJSON
- response data type JSON / YAML.org.apache.axis2.AxisFault
- Error occurred while getting the host information.public String getUpdatedSwaggerFromApi(String existingSwagger, boolean isJSONIn, boolean isJSONOut) throws APIGenException
existingSwagger
- swagger definition needs to be updated.isJSONIn
- input swagger data type JSON / YAML.isJSONOut
- output swagger data type JSON / YAML.APIGenException
Copyright © 2021 WSO2. All rights reserved.