You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to transform data retrieved by the upstream datasource (mongoDB fo example). Manipulating that as a dict object and then passing the parsed result along so that Eve can use it to generate the response.data field later on.
something like what I have below is what I am thinking:
# not sure if context is required, but it may be useful to support conditional logic based on knowing the caller URI, users session or some other kind of details.defpeople_callback(context,data):
customData=dict()
customData['something'] =_code_to_make_something_fork,vindata.iteritems():
v['somethingElse'] =_code_to_make_something_else_customData[k] =vreturncustomData
`...'
app.on_get_on_read_people+=people_callback
The text was updated successfully, but these errors were encountered:
It would be useful to transform data retrieved by the upstream datasource (mongoDB fo example). Manipulating that as a dict object and then passing the parsed result along so that Eve can use it to generate the response.data field later on.
something like what I have below is what I am thinking:
`...'
The text was updated successfully, but these errors were encountered: