mongodb - Can we have custom field in subresource url in eve -
i using eve 0.7.2 , flask 0.12 , mongodb. trying build sub resource.
user/<regex("[a-za-z0-9]{24}"):user_id>/abc the above url subresource. instead of using mongo object id in place user_id whether can use other place in document.
does you?
domain = { 'user': { 'schema': user, 'additional_lookup': { 'url': 'regex("[\w]+")', 'field': 'place' }, }, } more info resource-item-endpoints
Comments
Post a Comment