I have a curious question regarding REST API design!
There is a resource called users
and there are different user-types
Say if I want to delete a user by Rest design I would have an endpoint like
DELETE /users/id
But now I want to delete all users with a specific user-type and maybe other params that I can't send as a query params. I read a bunch of documentation against using body params for DELETE
So I thought having a POST /users/delete
route would be a better option.
Now I am confused if my new route POST /users/delete
can be used for both individual user deletion and multiple user deletion. Does this violate any REST standard?
If not what would be another way to do this?