1.4.4 • Published 11 months ago

@sebspark/openapi-client v1.4.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

@sebspark/openapi-client

A typed REST client for the definitions from openapi-typegen

Usage

Install

yarn add @sebspark/openapi-client`

or

npm install @sebspark/openapi-client`

Generate client type

Use @sebspark/openapi-typegen

Code

import { TypedClient } from '@sebspark/openapi-client'
import { MarketdataClient } from './schemas/marketdata'

const client = TypedClient<MarketdataClient>(`https://example.com/api`)
const {data} = await client.get('/markets')

Example

Example can be found in @sebspark/openapi-e2e

1.4.4

11 months ago

1.4.3

11 months ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.2.0

2 years ago

0.1.0

2 years ago