News for hackers. Stuff that matters.
Re:A set of best practices for JavaScript projects by HatchedLake721 on Wednesday July 05, 2017 @04:51PM (#14705996)
Because there could be related resources, e.g. "/repositories/1/users", or "/users/1/comments".

I agree it's not necessary, but having /actions just makes it more clear. For example:

"/repositories/1/bans" shows me all bans

"/repositories/1/ban" ban action

I know it's a bad example, but you could end up with other similar related resource and action names that could increase chances of silly mistakes.

There are no comments on this comment yet.