public class CodeGenerator extends Object
| Constructor and Description |
|---|
CodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(String projectName,
List<org.wso2.carbon.apimgt.rest.api.publisher.dto.APIInfoDTO> apis,
List<String> swaggerDefs,
boolean overwrite)
Generates ballerina source for provided Open APIDetailedDTO Definition in
definitionPath. |
public void generate(String projectName, List<org.wso2.carbon.apimgt.rest.api.publisher.dto.APIInfoDTO> apis, List<String> swaggerDefs, boolean overwrite) throws IOException, BallerinaServiceGenException
definitionPath.
Generated source will be written to a ballerina package at outPath
Method can be user for generating Ballerina mock services and clients
IOException - when file operations failBallerinaServiceGenException - when code generator failsCopyright © 2018 WSO2. All rights reserved.