An open API service indexing awesome lists of open source software.

https://github.com/tonystrawberry/playground.openapi.generator

🚀 Demo project with OpenAPI Generator & Typescript
https://github.com/tonystrawberry/playground.openapi.generator

api openapi

Last synced: 2 months ago
JSON representation

🚀 Demo project with OpenAPI Generator & Typescript

Awesome Lists containing this project

README

          







Study project for automatically generating frontend TS code from an OpenAPI schema

## 🚀 Local development

1. Install `Java` on your machine.
2. Install `openapi-generator-cli`.
```
npm install @openapitools/openapi-generator-cli -g
```

3. Generate TS API client code into target folder (`/lib/api`)
```
npx @openapitools/openapi-generator-cli generate -i schema.yml -g typescript-axios -o /lib/api
```

## 📚 Resources
https://openapi-generator.tech/