I do not see how batch processing requests make sense in REST. Since the URL of a REST-based service is an operation to execute and data to execute it, executing batch requests will seriously violate the conceptual model.
An exception would be if you performed the same operation with the same data several times. In this case, you can either pass several values ββfor the request parameter or encode this repetition in the body (however, this will really work only for PUT or POST). Gliffy REST API supports adding multiple users to the same folder through
POST /folders/ROOT/the/folder/name/users?userId=56&userId=87&userId=45
which is essentially:
PUT /folders/ROOT/the/folder/name/users/56
PUT /folders/ROOT/the/folder/name/users/87
PUT /folders/ROOT/the/folder/name/users/45
As another commentator noted, search results from a GET can be performed using query parameters:
GET /some/list/of/resources?startIndex=10&pageSize=50
if the REST service supports it.
source
share