@
@
@Twitt2019-10-09 11:41:21
RESTful API
@Twitt, 2019-10-09 11:41:21

Is it possible to update multiple resources with PUT?

The question arose, is it possible to update several resources using the PUT method? If yes, then I don’t understand a little how this is achieved if we access a specific resource address, for example:
PUT endpoint/38838231
In this case, we update the resource with ID 38838231 and give it the data that will come in PUT BODY.
But I was told that through PUT you can update many resources at once: is it really possible, or is it not just restful anymore?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IDONTSUDO, 2019-10-27
@IDONTSUDO

The HTTP protocol is pure fiction. You can write a server that will fully use the DELETE method for all requests (and no one will die from this).
But what you want to do is called business logic. And you write it yourself with pens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question