Getting Started with OpenAPI Generator
To get started, you can download the OpenAPI generator CLI and run it locally via Homebrew, but in my experience using a Docker image provides more flexibility.
Installation
- Install Docker Desktop
- Start Docker
- In a terminal app, run this command to download the openapi-generator docker image.
docker pull openapitools/openapi-generator-cli:v6.2.1
At this time 6.2.1 is the current stable release.
In order to try out OpenAPI Generator, we'll use the Petstore API specification to generate a TypeScript SDK.