0

A good practice to name a PUT request is like:

/employee/123

What if I want to replace several employees? Is it a good practice to do so in single request? If yes, then how to name the url with multiple ids?

Mandroid
  • 4,891
  • 3
  • 47
  • 85
  • 1
    Does this answer your question? [REST: Updating Multiple Resources With One Request - Is it standard or to be avoided?](https://stackoverflow.com/questions/32098423/rest-updating-multiple-resources-with-one-request-is-it-standard-or-to-be-avo) – bereal Feb 24 '20 at 08:12

1 Answers1

0

yes, you can remove multiple employs using a single URL
you can pass multiple ids like this

/employee=[id1,id2]

fahad
  • 1
  • 1
  • 6