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

https://github.com/jeserodz/type-swagger

JavaScript/TypeScript HTTP client generator from a Swagger/OpenAPI spec.
https://github.com/jeserodz/type-swagger

cli client-sdk fetch javascript swagger swagger-spec typescript

Last synced: 5 months ago
JSON representation

JavaScript/TypeScript HTTP client generator from a Swagger/OpenAPI spec.

Awesome Lists containing this project

README

          

# Type-Swagger

JavaScript/TypeScript HTTP client generator from a Swagger/OpenAPI spec.

## Installation

You can install the CLI tool locally or run it directly from NPM using `npx`.

### With `NPX`
`$ npx type-swagger generate `

### Local Installation
`$ npm install -g type-swagger`

## Usage

### Generate

Generate a new client SDK.

`type-swagger generate `

- **name:** Name of the package to be used.
- **specUrl:** URL of the Swagger spec in JSON format.

### Update

Update an existing client SDK.

`type-swagger update `

- **specUrl:** URL of the Swagger spec in JSON format.