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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -