Say I have the following relational structure of data (for examples sake):
A `post` which is a child of a `category`
This data can be accessed via these API endpoints:
GET /category/1
GET /category/1/post/1
GET /category/1/post/2
I have now decided that I want to use my API to delete category 1
so I run DELETE /category/1
.
However, category 1
has relational child post elements that can't exist without the category, would you expect this call to either fail and say you must first delete the child elements OR automatically recursively delete the child elements when you delete the category?