$batch

With the $batch query option,  it is possible to execute more than one GET command with one request.

If you need multiple requests, use $batch for faster response.

youtube Work with $batch

 

POST format, JSON format

odata-batch-command

{

"id-a","get-command",
"id-b","get-format"

}

returns

odata-batch-command_result

{

"id-a",{result},
"id-b",{result}

}

Define the ID for each command. See the same ID and the value in the result.

 

Limitations:

Works only  for odata4 format, the system does not read header information. Define all in the get command.

Works only for GET commands.