See this repo for backend setup.
- Point your OpenAPI schema.json file in
.env
NEXT_PUBLIC_API_URL=http://localhost:8000/swagger/json
- Generate the queries and schema
pnpm codegen
- Start your server
pnpm dev
Using automatically generated API schema and query from OpenAPI json that generates React Query code in Next.js
TypeScript
See this repo for backend setup.
.env
NEXT_PUBLIC_API_URL=http://localhost:8000/swagger/json
pnpm codegen
pnpm dev