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