Experimenting with Spot and OpenAPI client generators
The workflow is as follows:
- Implement a new endpoint in
./server.js - Run
npm run gen:spot-contractto generate/update a Spot contract containing endpoints and request/response definitions (stored in./api.ts). - Run
npm run gen:openapito generate an OpenAPI schema (api.yml) from the Spot contract. - Run
npm run gen:clientto generate a TypeScript client library stored in./client/