Sometimes you want to perform multiple queries all at once. For example, maybe you need to load a few collections to populate a form. Normally you would need to submit multiple HTTP requests which could be slow.
You POST a map to the /batch endpoint describing the requests you want to submit. The system will process all of your requests at once, and send you back a single result object. The keys of the result will be the same keys you submitted.
Example request using a key-value map of requests to execute in a batch:
curl -H "Authorization: key 1:CVRRGQ58QDX8H5B4W4RAJ978Q" \
http://example.com/api/v2/batch/api/v2/batch?
get[stars]=/api/v2/ticket_stars
&get[tickets]=/api/v2/tickets%3Fpage%3D2%26ids%3D1%2C2%2C3%2C4
# the last line decodes to a URL like:
# /api/v2/tickets?page=2&ids=1,2,3,4