public class APIGenerator extends Object
| Constructor and Description |
|---|
APIGenerator(com.google.gson.JsonObject swaggerJson) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.synapse.api.API |
generateSynapseAPI()
Generate API from provided swagger definition
|
org.apache.synapse.api.API |
generateSynapseAPI(org.apache.synapse.api.API existingAPI)
Generate API from provided swagger definition referring to the old API.
|
org.apache.synapse.api.API |
generateUpdatedSynapseAPI(org.apache.synapse.api.API existingAPI)
Function to generate updated API extracting the implementation from an existing API
|
public org.apache.synapse.api.API generateSynapseAPI()
throws APIGenException,
MalformedURLException
APIGenExceptionMalformedURLExceptionpublic org.apache.synapse.api.API generateSynapseAPI(org.apache.synapse.api.API existingAPI)
throws APIGenException
existingAPI - old APIAPIGenExceptionpublic org.apache.synapse.api.API generateUpdatedSynapseAPI(org.apache.synapse.api.API existingAPI)
throws APIGenException
existingAPI - the existing API to extract resource implementationsAPIGenExceptionCopyright © 2021 WSO2. All rights reserved.