public class CodeGenerator extends Object
| Constructor and Description |
|---|
CodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(String projectName,
List<ExtendedAPI> apis,
boolean overwrite)
Generates ballerina source for provided Open APIDetailedDTO Definition in
definitionPath. |
public void generate(String projectName, List<ExtendedAPI> apis, 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.