Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lifeiscontent/openapi-sdk
Generate Typesafe SDK from OpenAPI spec
https://github.com/lifeiscontent/openapi-sdk
openapi sdk typescript
Last synced: 3 days ago
JSON representation
Generate Typesafe SDK from OpenAPI spec
- Host: GitHub
- URL: https://github.com/lifeiscontent/openapi-sdk
- Owner: lifeiscontent
- Created: 2024-01-03T05:13:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-03T05:13:52.000Z (11 months ago)
- Last Synced: 2024-05-01T21:20:23.166Z (7 months ago)
- Topics: openapi, sdk, typescript
- Language: TypeScript
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openapi-sdk
## Generate Typesafe SDK from OpenAPI spec
### Usage
for using dynamic base URLs
```bash
pnpm openapi-sdk generate --input openapi/printful.json --base-url process.env.API_BASE_URL --output sdk/printful.ts
```for using static base URLs
```bash
pnpm openapi-sdk generate --input openapi/printful.json --base-url https://api.printful.com --output sdk/printful.ts
```