coming from a Wordpress background my knowledge on using REST API's is quite limited. I've started using JSON server (dummy local rest API) to learn the ins and outs.
Looking at the documentation, there doesn't seem to be any way to delete, update or post multiple items in one go? The PATCH
, POST
, PUT
and DELETE
methods all require an endpoint structured with one trailing ID eg /posts/1
. I've tried both sending multiple ID's in the url ie ?id=1&id=2
and also as part of the request body but neither seem to work.
Is this how typical REST API's work, and if so does this mean i would have to loop though ID's and send multiple requests for each, or am i missing the point??