0

I have seen quite bit of different answers on how people use the URIs in REST. I tend to use plurals for collections and singulars for single ressource. But it requires more routing.

Is it ok to use plurals for all ressources? For example:

GET /ressources               // to all ressources
GET /ressources/{id}          // to get one ressource
DELETE /ressources/{id}       // to delete one ressource

or should I stick with:

GET /ressources
GET /ressource/{id}           
DELETE /ressource/{id}

Is it valid in all cases? What is the best practice in this case?

unor
  • 92,415
  • 26
  • 211
  • 360
Stéphan Champagne
  • 1,259
  • 12
  • 12

1 Answers1

-1

I use pluralized URI as you outlined