Class APIGenerator
java.lang.Object
org.wso2.carbon.mediation.commons.rest.api.swagger.APIGenerator
This class will generate synapse Rest API configuration skeleton from swagger definition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.synapse.api.APIGenerate API from provided swagger definitionorg.apache.synapse.api.APIgenerateSynapseAPI(org.apache.synapse.api.API existingAPI) Generate API from provided swagger definition referring to the old API.org.apache.synapse.api.APIgenerateUpdatedSynapseAPI(org.apache.synapse.api.API existingAPI) Function to generate updated API extracting the implementation from an existing API
-
Constructor Details
-
APIGenerator
public APIGenerator(com.google.gson.JsonObject swaggerJson)
-
-
Method Details
-
generateSynapseAPI
Generate API from provided swagger definition- Returns:
- Generated API
- Throws:
APIGenException
-
generateSynapseAPI
public org.apache.synapse.api.API generateSynapseAPI(org.apache.synapse.api.API existingAPI) throws APIGenException Generate API from provided swagger definition referring to the old API.- Parameters:
existingAPI- old API- Returns:
- Generated API
- Throws:
APIGenException
-
generateUpdatedSynapseAPI
public org.apache.synapse.api.API generateUpdatedSynapseAPI(org.apache.synapse.api.API existingAPI) throws APIGenException Function to generate updated API extracting the implementation from an existing API- Parameters:
existingAPI- the existing API to extract resource implementations- Returns:
- generated API
- Throws:
APIGenException
-