What steps will reproduce the problem?
1. Any messages.Message inside a class with required fileds
class ProductFilter(messages.Message):
#This class is message received from client the response to which is the
ManyProduct messages
productCategory = messages.EnumField(EnumMessage.Category, 1, required=True)
#productCategory = Shoes, Bags, Apparel..
productSubcategory = messages.EnumField(EnumMessage.SubCategory, 2, required=True)
#productSubCategory = Boots, Sandals..
productColor = messages.EnumField(EnumMessage.Color, 3, required=True)
productSize = messages.EnumField(EnumMessage.Size, 4, required=True)
productPriceBand = messages.EnumField(EnumMessage.PriceBand, 5, required=True)
2. FILTER_RESOURCE_CONTAINER = endpoints.ResourceContainer(
ProductFilter,
times=messages.IntegerField(2, variant=messages.Variant.INT32,
required=True))
3.@endpoints.method(FILTER_RESOURCE_CONTAINER, ManyProduct,
path='product/{times}', http_method='GET',
name='product.listProducts')
What is the expected output? What do you see instead?
The api explorer, should also show required fields in the GUI when the message
is a class, currently it does not. So when I execute the get, the correct
required fields are not captured resulting in a 400.
Services > shopinaAPI API 1 > shopinaAPI.product.listProducts
Authorize requests using OAuth 2.0:
times
(integer)
{ALL THE OTHER REQUIRED FIELDS from ProductFilter ARE MISSING}
fields
Selector specifying which fields to include in a partial response.
Use fields editor
bold red = required
Execute
What version of the product are you using? On what operating system?
osx
Please provide any additional information below.
Original issue reported on code.google.com by par...@reflect.ly on 7 May 2014 at 8:53
Original issue reported on code.google.com by
par...@reflect.ly
on 7 May 2014 at 8:53