blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
136 stars 18 forks source link

Implement RPC API handlers and client #105

Closed blomqma closed 10 months ago

blomqma commented 10 months ago

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.

vercel[bot] commented 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