PuffPastry Backend OpenAPI and Frontend SDK Generation
This backend exposes an OpenAPI 3.0 document at:
GET http://localhost:7300/openapi.json
You can generate a TypeScript client for your frontend using openapi-typescript-codegen:
Install the generator (once): npm install -g openapi-typescript-codegen
Run code generation (adjust output path to your frontend project): openapi --input http://localhost:7300/openapi.json --output ../frontend/src/api --client axios
If you prefer, you can output a local file first:
curl -s http://localhost:7300/openapi.json -o openapi.json openapi --input openapi.json --output ../frontend/src/api --client axios
Notes