REST API Interfaces describes the endpoints on GET and POST methods of various OLAP endpoints exposed via RESTful web service. Topics CoveredIn this document you will find information on the following topics:
- GET method of REST Endpoints
- POST method of REST Endpoints
Base Path: https:// <hostname>//eagle/report/v1/<supported feature>
REST Endpoint output defaults to JSON Format. In addition, the Endpoints are in camel casing and case sensitive.
GET
...
Method of REST Endpoints
GET method of OLAP RESTful web service is used to read/request the data from the Eagle data warehouse. Below are the list of GET Endpoints supported by OLAP REST API.
...
Features | BASE URL’s |
Report Profiles | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/reportProfiles |
Benchmark Definitions | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/benchmarkDefinitions |
Fields | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/fields |
Fields By Indicator | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/fieldsByIndicator/{FieldIndicator} |
Entities | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entities |
Entity By Id | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entity/ {EntityID} |
Entity By Name | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entitiesByEntityNameLike/{Entitynamelike} |
Entity By Type | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entitiesByType/{EntityType} |
Details on individual GET Endpoints
Following are details on individual GET endpoints.
reportProfiles: A GET request to return a list of report profiles.
...
Resource path: /eagle/report/v1/entitiesByType/{entity type} | |
Examples: | |
Web Browser | https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entitiesByType/COMP |
Curl | curl -u user:password “https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/entitiesByType/COMP” |
Sample response: [ |
POST
...
Method of REST Endpoint
‘adhocReport’ is a feature supported to extract OLAP report output using both POST and GET method. This will run runs a PACE report service based on the request payload input parameters in JSON format.
...
URL: https://o171-q001-ww01.eagleinvsys.com/eagle/report/v1/adhocReport? reportName=******&entityId=****,****&beginDate= YYYYMMDD &endDate= YYYYMMDD &fields= 7377,7373,11429,11779,11780&outputFormat=JSON JSON/ JSON2/ CSV/ TSV/ XLS/ ERX |
Details of the input parameter and its values in POST request payload and GET Request URL String of ‘adhocReport’ endpoint to extract and OLAP report data.
Input Parameter | Description |
reportName | Name of the Report. As the name indicates, report name should be provided in string format. |
entityId | Single entity Id ID or multiple entity Id’s IDs with comma (,) or tilde (~) as separator should be provided in string format. |
beginDate | Beginning date of the report should be provided in this particular format (YYYYMMDD). |
endDate | End Date of the report should be provided in this particular format (YYYYMMDD). |
fields |
|
outputFormat |
|
constituentsAndBenchmarkToComposite | Provide boolean value either true or false. This flag is applicable only for Composite Analysis report. |
benchmartToPortfolio | Provide boolean value either true or false. This flag is applicable for OLAP reports such as Performance Analysis, Positions and Entity And Client. |
firstAlternateCurrency | Provide 3 letter predefined Currency code. For example, USD / CAD |
secondAlternateCurrrency | Provide 3 letter predefined Currency code. For example, USD/CAD |
fetchPriorFXRates | Provide numeric value starting from 1 till 1000. |
"benchmarkOverride": { "Comparison Index 4":"<Entity ID>", "Comparison Index 5": "<Entity ID>", "IsEntities": true } |
|
"benchmarkOverride": { "Comparison Index 5": "Primary Comparison Index", "IsEntities": false } |
|
Info |
---|
Note Mandatory/Required parameters: reportName, beginDate, endDate, outputFormat Optional parameters: fields, entities. If not given or given as empty string will submit and generate report with all fields and entities mapped with that respective report profile |
.
Sample POST Request with Payload:
...