Swagger Code Generation

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

  1. To generate code in target language from REST Service (Swagger) model, please refer to point 4 in below transformation:
  2. To generate code in target language from an existing Swagger file (JSON or YAML) follow below steps:
    1. Right click on the file and select "Generate Target Language Code".
    2. In the Swagger code generator dialog select the destination and the desired target language from the list of supported languages in the combo.
    3. Click Finish.
    4. The code gets generated inside the generated_code folder under the target project.

Feedback