Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RPC API handlers and client #105

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Implement RPC API handlers and client #105

merged 1 commit into from
Nov 16, 2023

Conversation

blomqma
Copy link
Owner

@blomqma blomqma commented Nov 15, 2023

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.

Copy link

vercel bot commented Nov 15, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant