The Codewind OpenAPI Tools for Eclipse includes wizards that invoke the OpenAPI Generator to create API clients, server stubs, and HTML documentation from OpenAPI definitions. The tools are integrated and customized to work with Codewind for Eclipse, but they also work with a base Eclipse IDE for Java EE Developers installation.
- Download and install the latest Eclipse IDE for Java EE Developers or use an existing installation. If you use Codewind OpenAPI Tools with Codewind, the earliest supported version of the Eclipse IDE is 4.11.0 (2019-03).
- [Optional] Install Codewind from the Eclipse Marketplace.
- Install the Codewind OpenAPI Tools from the Eclipse Marketplace.
- Launch the context menu on any existing workspace projects or any
openapi.yaml
workspace OpenAPI document files from the Package Explorer or Project Explorer views. - If Codewind is installed, the context menu generator actions are available in the Codewind Explorer view.
- Ensure at least one OpenAPI definition is in the project.
- Select an action to generate the client or server stubs or HTML documentation.
- Enter the requested information that is displayed in the wizard.
- After generation, edit the
.openapi-generator-ignore
file to ensure that subsequent code generation does not overwrite custom code.
- Generate API clients in any of the supported languages/frameworks.
- Generate server stubs in any of the supported languages/frameworks.
- Generate HTML documentation from an OpenAPI definition.