I have a web service that needs to read a list from the caller, do some work and then return a response.
@endpoints.method(ARequestMessage, AResponseMessage, name="call", path="call") def call(self, request): aList = request.in_list for stuff in aList: "do work here" return when I am done
Will the following ARequestMessage class ARequestMessage ?
class ARequestMessage(messages.Message): name = messages.StringField(1, required=True) in_list = messages.FieldList(2, required=True)
I am not sure about using FieldList in structure or in context. Please add some code in the answer.
source share