(Glue-2011) Synchronous data consumption

GET /queues/consume endpoint allows the client to consume data from a Glue queue thus enabling synchronous data consumption. Consume queue can be executed in parallel to enable mass replication. It supports the following input parameters:

Parameter name

Description

Usage

Type

Parameter name

Description

Usage

Type

glueQueue

Glue queue name

Mandatory

JSON array object

format

Data output format

Mandatory

“CSV” or “JSON”

All input parameters are case insensitive. 

Example of REST API call: 

GET

http://servername:portnumber/dvd/glue/api/v3/queues/consume?sap-client=800 

GET

http://servername:portnumber/dvd/glue/api/v3/queues/consume?sap-client=800 

JSON body: 

{ "glueQueue": "ZTR_CUSTOMER_FIFO_F", "format": "JSON" }

Functionality is implemented in the SAP class /DVD/GL_EXT2_API_CONSUME_FIFO

Error handling

Every error message is raised via code 400. The reason for the error is also provided; however further investigation might be needed on the SAP side.