grpc-ecosystem / grpc-ecosystem/grpc-httpjson-transcoding

Support automatic FieldMasks with PATCH

Open
#107 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
178
Forks
39
PR merge metrics
No merged PRs in 30d

Description

GRPC-Gateway supports a PATCH feature[1](https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/patch_feature/) 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 https://github.com/envoyproxy/envoy/issues/10235)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.