DEV Community

Discussion on: Naming and Creating API Endpoints

Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴

I agree and practice these ideas/tips daily.

Something I also do is something like an actions namespace:

  • /users/:uuid/actions/deactivate
  • /users/:uuid/actions/archive

For example where these actions have their own meaning and UI handling.

Collapse
 
_mertsimsek profile image
Mert Simsek

Thanks for your reply! Your approach has some cons and pros but it might be a good solution UI handling.