They recently updated documents to explain this change here: Google App Engine Docs
Basically you want to separate the request body and the request / path parameters.
The request body will be the usual messages.Message class, and you define any additional parameters in the ResourceContainer .
YOUR_RESOURCE_CONTAINER = endpoints.ResourceContainer( MyRequestBodyMessagesClass, parameter1=messages.IntegerField(2, required=True) parameter2=messages.StringField(3))
This change should help minimize the number of message classes required, since you can mainly reuse RequestBody-Message for message replies.
Note: if you use endpoints-proto-datastore , a question about this will open.
source share