Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```