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

Pass safe and idempotent options to MethodDescriptor #1774

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

igor-vovk
Copy link
Contributor

@igor-vovk igor-vovk commented Nov 28, 2024

Hi! I'm working on the library that provides ConnectRPC-compatible REST interface from ScalaPB service interfaces https://github.com/igor-vovk/connect-rpc-scala.

One of the nice features of the Connect protocol is being able to expose endpoints so they are reachable with GET-requests instead of POST (https://connectrpc.com/docs/protocol/#unary-get-request). It is controlled by the idempotency_level option. This PR adds passing this option to the MethodDefinition, so that https://github.com/igor-vovk/connect-rpc-scala/pull/14/files#diff-c75d247c647e264575f9907d360db7a0769a44833b041a1a540b2eb7592ca656R71 would be possible.

@igor-vovk
Copy link
Contributor Author

@thesamet fixed your previous comments 🙏

@igor-vovk igor-vovk changed the title Pass safe and idempotent options to the MethodDescriptor Pass safe and idempotent options to MethodDescriptor Nov 29, 2024
@igor-vovk igor-vovk requested a review from thesamet December 4, 2024 21:18
@igor-vovk
Copy link
Contributor Author

I'm wondering if there is anything else that needs to be done in this PR so it will be merged

@thesamet thesamet merged commit 261376f into scalapb:master Feb 14, 2025
1 check passed
@thesamet
Copy link
Contributor

Sorry, this fell off my radar. Merged!

@igor-vovk igor-vovk deleted the idempotency-level branch February 14, 2025 16:22
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.

2 participants