3 ms·
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 m
by HatchedLake721 9y ago
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.