miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
598 stars 153 forks source link

skipping create_object if object already exists #195

Open ayushais opened 3 years ago

ayushais commented 3 years ago

Hi,

I want to skip creating an object if it already exists. Using before_create_object I can check if the object already exists and then would like to return the object. Is it somehow possible to do this? or I have to create a custom data layer to implement my create_object function