ServiceNow, Inc.
BATCH REPRESENTATIONAL STATE TRANSFER (REST) APPLICATION PROGRAMMING INTERFACE (API)
Last updated:
Abstract:
A disclosed method of operating a representational state transfer (REST) server to respond to receiving a batch request includes: extracting a first requested item from the batch request; opening an output stream to a client network; writing a response opening of a batch response to the output stream; writing a first response item opening of the batch response to the output stream; in response to determining that a first REST service indicated by the first requested item is authorized to be invoked based on access control lists (ACLs), invoking the first REST service to stream a first response item body of the batch response to the output stream; writing a first response item closing of the batch response to the output stream; and writing a response closing of the batch response to the output stream, wherein the batch response is in valid JavaScript Object Notation (JSON).
Utility
22 Oct 2020
11 Feb 2021