Code in Target Language can be generated from a REST
Service (Swagger) model as well as from existing Swagger file.
Before you begin
You must be in the Modeling perspective and the REST Modeling capability must be enabled.
Procedure
- To generate code in target language from REST Service (Swagger) model, please refer to point 4
in below transformation:
- To generate code in target language from an existing Swagger file (JSON or YAML) follow below
steps:
- Right click on the file and select "Generate Target Language Code".
- In the Swagger code generator dialog select the destination and the desired target language from
the list of supported languages in the combo.
- Click Finish.
- The code gets generated inside the generated_code folder under the target project.