Closed blomqma closed 10 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-rest-framework | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 16, 2023 9:45pm |
next-rest-framework-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 16, 2023 9:45pm |
This introduces a new way of writing RPC styled API handlers and abstract away the use of status codes, HTTP responses etc. The input validation, type-cheking and OpenAPI spec generation are handled in the same way as with the REST endpoint handlers.
Additionally, a new RPC client function is introduced that allows calling the procedures both on the server and in the client.