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
- Host: GitHub
- URL: https://github.com/tonystrawberry/playground.openapi.generator
- Owner: tonystrawberry
- Created: 2022-04-05T09:48:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T07:08:08.000Z (over 3 years ago)
- Last Synced: 2025-03-25T11:25:20.932Z (over 1 year ago)
- Topics: api, openapi
- Language: TypeScript
- Homepage: https://openapi-generator.tech/
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/