I have a MySQL server with SQL-Alchemy, then I serve my API with Flask-Restless.
When I send a Delete Resource request to a parent table, it will allow the delete even if another table has a foreign key referencing the deleted row. The same request (on the same setup) is not allowed through other channels (e.g. MySQL Workbench) because Foreign Key Constraints is enabled.
Is it possible to configure flask-restless to throw a similar error?
I have a MySQL server with SQL-Alchemy, then I serve my API with Flask-Restless.
When I send a Delete Resource request to a parent table, it will allow the delete even if another table has a foreign key referencing the deleted row. The same request (on the same setup) is not allowed through other channels (e.g. MySQL Workbench) because Foreign Key Constraints is enabled.
Is it possible to configure flask-restless to throw a similar error?
Thank you.