Singular vs plural for specific resource in rest api

I remember hearing this here (i think it was Ragnar). That for singular resource it's better to do it like this.

"/resource/:Id"


Instead of

"/resources/:id"


Can't remember the exact reasoning but i think it was because of better semantics.

I searched stack overflow and reddit posts for more opinions and it seems majority prefer the plural approach because it has been the standard for so long. They say singular is mostly good for mapping to db tables and rest api don't need to conform to tables.

Tho i can't really find any of the arguments against singular form substantial besides "people are used to plural".

Everything seems like a preference issue
Was this page helpful?