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

Support automatic FieldMasks with PATCH #107

Open
nemith opened this issue Dec 23, 2024 · 0 comments
Open

Support automatic FieldMasks with PATCH #107

nemith opened this issue Dec 23, 2024 · 0 comments

Comments

@nemith
Copy link

nemith commented Dec 23, 2024

GRPC-Gateway supports a PATCH feature1 that when:

  1. a non * body is provided
  2. there is a update_mask field present that is of a type google.api.FieldMask
  3. And the method is PATCH

Then the fields specified in the body are automatically added to the update path.

This is extremely useful for transcoding a idomatic REST interface to gRPC while stil supporting stanard gRPC interfaces.

  1. https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/patch_feature/

This is needed for projects like envoy who use this library. (See envoyproxy/envoy#10235)

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

No branches or pull requests

1 participant