Doubts about route nomenclatures REST

Asked

Viewed 7 times

-1

Good night,

I am developing a system for a clinic in my region, and I was left with doubts about the names of the routes using the REST standard (new for me).

I need to assign a professional receptionist to a healthcare professional, and I’ve named the route as follows:

POST: users/:id/healthcare_professional/:professional_id/assign

Body: {clinic_id: 1}

Would that be right? or would there be another way to name this route? and for the issue of unknowing, it would be the same name, changing only the method to DELETE?

Already to seek the assigned professionals I put as follows:

GET: users/:id/Clinic/:clinic_id/healthcare_professionals

I do not know if I am doing this the right way and would like a help, thanks already =D

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.