flask-restless
flask-restless copied to clipboard
Postprocessors don't get fired, when item is not found
Is there a specific reason why postprocessors don't get fired when item is not found? I think that's the ideal place where to implement 'GET or INSERT' feature.
I've got this code:
postprocessors={
'GET_SINGLE': [get_or_insert_item],
})
It is currently considered an error response (404 Not Found), and we aren't applying postprocessors on any error responses, only on non-error responses. It doesn't necessarily have to be that way, that's just the way it exists now.