google.api.HttpRule
type HttpRule
HttpRule
google.api.HttpRule
google.api.HttpRule
Field | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
selector | string | Selects a method to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. | |||||||||||||||||||||
pattern |
|
| |||||||||||||||||||||
body | string | The name of the request field whose value is mapped to the HTTP request body, or
for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type. | |||||||||||||||||||||
response_body | string | Optional. The name of the response field whose value is mapped to the HTTP response body. When omitted, the entire response message will be used as the HTTP response body. NOTE: The referred field must be present at the top-level of the response message type. | |||||||||||||||||||||
additional_bindings |
| Additional HTTP bindings for the selector. Nested bindings must not contain an
field themselves (that is, the nesting may only be one level deep). |
GOOGLE EXAMPLE