On This Page:
Table of Contents |
---|
The You can execute Data Services can be executed using EQL and Generic Extractor REST APIs.
This page shows examples on Below are examples showing how to run Data Services extracts using the MC2 Swagger UI.
...
One option to run EBS extracts is to use the Generic Extractor REST API. The Swagger for the Generic Extractor REST API can be retrieved from:
Code Block | ||
---|---|---|
| ||
https://eagle-web-server/eagle/v2/generic/extract/api-doc |
The Generic Extract REST API allows for the execution of multiple extracts, both standard EagleML extracts and Data Services extracts with one HTTP POST request and to returns the extracted data in a ZIP file.
All parameters supported by the Generic Extractor are supported in the REST request.
To execute a test REST request you can use the MC2 Swagger UI. Open the browser (Chrome) to point to the mc2/swagger-ui.html endpoint:
Code Block |
---|
https://eagle-web-server/mc2/swagger-ui.html |
In the dropdown on the right top corner select Generic Extractor:
Click on eaglegenericextractrestapi, then click on POST and Try It Out:
In the Example Value Model add:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "extractParameters": [ { "name": "ebs:default:outputformat", "value": "EagleJSON" }, { "name": "ebs:default:invalidatecache", "value": "Y" } ], "extracts": [ { "name": "ebs:genericentity", "extractParameters": [ { "name": "maxrows", "value": "5" } ] }, { "name": "ebs:interfaces", "extractParameters": [ { "name": "maxrows", "value": "10" } ] } ] } |
Then click Execute:
The result will be a ZIP file with two extracts as show below:
When you download the zip, you will see two files there:
Run Data Services Extracts Using EQL REST API
The EQL REST API Swagger is available at:
Code Block | ||
---|---|---|
| ||
http://eagle-web-server/eagle/v2/eql/api-doc |
The EQL interface allows for the execution of one ad-hoc or pre-defined Data Services interface.
A You can execute a request from the EQL REST API can be executed using the MC2 Swagger UI at
Code Block |
---|
http://eagle-web-server/mc2/swagger-ui.html |
In Select EQL from the dropdown select EQLlist:
Click on Click eql-rest, then click POST, then and Try it OutOut>
In the Example Value Model enter the following:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "FeedType" : "genericentity" , "emlObjectType": "Entity", "outputformat": "EagleJSON", "filters": { "maxrows" : "5" }, "SaveSQLQuery": "Y", "invalidatecache": "Y" } |
Then click Execute:
The result will be is shown in the Response Body box below: