3

Are there any known best practices for web service REST API bulk naming?

Some suggestions for user resource :

/api/users-bulk
/api/bulk/users
/api/users/bulk
/api/users/_bulk
chupee120
  • 123
  • 1
  • 8

1 Answers1

4

There is no rules, you can use any routes, but I prefer 3rd /api/users/bulk in case bulk is additional functionality for users (like get all users /api/users, get user by id /api/users/:id, ...). In this case all user related operations are under /api/user/.

witalego
  • 551
  • 3
  • 7