This is an SDK generator that, given just an array of endpoint urls, will create a valid OpenAPI spec (example), Node.js SDK client written in TypeScript (example), and tests for the client (example).
- Run
yarn
to install dependencies - Copy
.env.example
to.env
and add your OpenAI API key - Update the
endpoints
array insrc/generator.ts
with URLs of the endpoints you want to work with - Run
yarn start
to generate the SDK
🎉 Voila! You now have a well documented and fully functional OpenAPI spec and SDK client that works with the API.