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
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Method's request body *and* query parameters become combined #20
Given this example from the python-docs-sample repository:
classGreeting(messages.Message):
"""Greeting that stores a message."""message=messages.StringField(1)
@endpoints.method(endpoints.ResourceContainer(Greeting,times=messages.IntegerField(2, variant=messages.Variant.INT32,required=True))Greeting,path='greetings/multiply/{times}',http_method='POST',name='greetings.multiply')defmultiply_greeting(self, request):
returnGreeting(message=request.message*request.times)
I find strange that the Greeting request body and times query parameter get "mixed" into a CombinedContainer object personified by request.
If I compare with Java, all of the parameters appear independently in the Java method signature.
For example:
changed the title [-]Method with request body *and* query parameters become combined[/-][+]Method's request body *and* query parameters become combined[/+]on Nov 5, 2016
Activity
[-]Method with request body *and* query parameters become combined[/-][+]Method's request body *and* query parameters become combined[/+]dalbani commentedon Nov 5, 2016
Speaking of
CombinedContainer: how am I supposed to implement PATCH semantics when it doesn't differentiate the case:{ "message": null }, frommessageat all.In both cases,
request.messageequals toNone.