You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a field besides the resource name needs to be different between different resources being requested.
message BatchGetBooksRequest {
// The requests specifying the books to retrieve.
// A maximum of 1000 books can be retrieved in a batch.
repeated GetBookRequest requests = 2
[(google.api.field_behavior) = REQUIRED];
}
Hi there, sorry for the late reply. You're right these things are at odds and when the guidance was changed in #281 to provide the "nested request message" as an alternative it was not updated to also say "use POST" though that is what was suggested and agreed upon in the relevant discussion: #203 (comment)
In looking at all public GCP APIs, none of them have a nested request message BatchGet, so I think we should be good from our end to update the guidance without worrying about conflicting examples.
AIP-231 allows nested request objects if
The same AIP also says
Can we infer that
requests
are filled with query parameters? However, there seems no HTTP transcoding for repeated messages in query params:The text was updated successfully, but these errors were encountered: