REST Clients Soon
We all send HTTP requests in a slightly different way. Hey API doesn't force you to use any specific technology. What we do, however, is support your choice with great clients. All seamlessly integrated with our other features.
Next.js, Axios, and Fetch API coming soon.
Legacy Clients
Before standalone client packages, clients were generated using openapi-ts
. If you want to generate a legacy client that isn't published as a standalone package, you can use the client
config option.
js
export default {
client: 'angular',
input: 'path/to/openapi.json',
output: 'src/client',
}
js
export default {
client: 'node',
input: 'path/to/openapi.json',
output: 'src/client',
}
js
export default {
client: 'xhr',
input: 'path/to/openapi.json',
output: 'src/client',
}
The following legacy clients are available:
- angular (using RxJS)
- node (using node-fetch)
- xhr
If you'd like a standalone package for your client, let us know by opening an issue.
Examples
You can view live examples on StackBlitz.