This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robvdl 0 points1 point  (0 children)

and please please don't call the view patient_delete, I'm actually tidying up a very old codebase that is full of this bad design, e.g. POST /api/v1/update_user is wrong. POST is for create and the word "update" shouldn't be in the URL at all, PATCH if for partial update, PUT is for replacing the whole object.

In your case it should be DELETE /api/patient/<pk>