Support gRPC-JSON translate without the google.api.http option. (#6731)

Description: Support gRPC-JSON translate without the `google.api.http` option.
Risk Level: Low
Testing: Done
Docs Changes: Done
Release Notes: Done

Fixes #3631

Signed-off-by: 吕海涛 <lv@haitao.dev>

Mirrored from https://github.com/envoyproxy/envoy @ 68d8c9e604100e8465498759b86a53a1b9cff1ed
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent 539bd3c26d
commit abb5c4491f
  1. 22
      envoy/config/filter/http/transcoder/v2/transcoder.proto

@ -92,4 +92,26 @@ message GrpcJsonTranscoder {
// binding for ``foo`` is not defined. Adding ``foo`` to ``ignored_query_parameters`` will allow
// the same request to be mapped to ``GetShelf``.
repeated string ignored_query_parameters = 6;
// Whether to route methods without the ``google.api.http`` option.
//
// Example :
//
// .. code-block:: proto
//
// package bookstore;
//
// service Bookstore {
// rpc GetShelf(GetShelfRequest) returns (Shelf) {}
// }
//
// message GetShelfRequest {
// int64 shelf = 1;
// }
//
// message Shelf {}
//
// The client could ``post`` a json body ``{"shelf": 1234}`` with the path of
// ``/bookstore.Bookstore/GetShelfRequest`` to call ``GetShelfRequest``.
bool auto_mapping = 7;
}

Loading…
Cancel
Save