The Generic Extract Rest API provides an interface that enables you to perform a generic extract.
The rest API base path is http://host:port/eagle/v2/generic/extract
The rest API definition is http://host:port/eagle/v2/generic/extract/api-doc
For details about how host and port, see REST Endpoints.
Executing Generic Extract request
In order to get extract you should send POST request to the http://host:port/eagle/v2/generic/extract and set query parameters in JSON format as a request body
Example:
curl -X POST -d @requestBody.json "http://host:port/eagle/v2/generic/extract"
requstBody.json content:
{
"extractParameters": [
{
"name":"maxrows",
"value":"1"
},{
"name":"OutputFormat",
"value":"JSON"
}
],
"extracts": [
{
"name":"ENTITYEXTRACT"
},
{
"name":"SMFEXTRACT"
}
]
}
In response you will get ZIP archive with extract files or TSR in JSON format in case no data was extracted or some errors occurred