flask-restless icon indicating copy to clipboard operation
flask-restless copied to clipboard

Postprocessors don't get fired, when item is not found

Open madvas opened this issue 9 years ago • 1 comments

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],
})

madvas avatar Mar 05 '15 15:03 madvas

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.

jfinkels avatar May 03 '16 07:05 jfinkels