Skip to content

Apply FiedMask to the GET (and LIST) returns #1605

Closed
@topherCantrell-vertiv

Description

@topherCantrell-vertiv

🚀 Feature

The protocol-buffers documentation mentions using the FieldMask to allow the gRPC server response to specify what fields are being returned in a single GET and in a GET list operation.

Currently, the gateway only generates field-mask code for UPDATEs.

https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/field-mask

The generated code should honor a FieldMask in the response message (maybe for any verb) and use that to generate the content of the returned JSON object(s). Many REST interfaces request a subset of fields. Or a user might only have access to a limited number of fields. This FieldMask lets the gRPC server control what is shown in the return HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions