Common JSON format across all the results
All the results returned by the REST API are nested within theResponse object’s entity field as follows:
All responses are contained within a
Response object. The entity field contains the actual response data. The status field contains the HTTP status code of the response. The responses may contain additional data from the Response object.Response’s status field is set to 500):
Endpoints and responses
The following matrix outlines the different endpoints and the information their response contains.| Endpoint | Response |
|---|---|
| submitOrders | Returns the list of task ids (String) as a result. |
| submitTemplateOrders | Returns the list of task ids (String) as a result. |
| addTemplateOrder | Does not return any specific value |
| removeTemplateOrder | Does not return any specific value |
| clearOldCompletedTasks | Returns the number of tasks cleared |
| isTaskCompleted | Simply returns a boolean. |
| isTaskListCompleted | Simply returns a boolean. |
| getTaskStatus | Returns a result based on the DeeTaskInfoDTO and DeeResultFileInfoDTO classes. |
| getTaskListStatus | Returns a result based on the DeeTaskInfoDTO and DeeResultFileInfoDTO classes. |
| cancelTask | Returns a result based on the DeeTaskInfoDTO and DeeResultFileInfoDTO classes. |
| cancelTaskList | Returns a result based on the DeeTaskInfoDTO and DeeResultFileInfoDTO classes. |
Enhanced Drillthrough endpoints and responses
Here are the endpoints exposed by the Enhanced Drillthrough component of the Extraction Engine:| Endpoint | Response |
|---|---|
| executeSearchFacts | Returns a list of Object[] representing the extracted attributes for each fact that fell into the query scope. |
| executeEnhancedDrillthrough | Returns no content, just an ok or error status |
| retrieveEnhancedDrillthroughResult | Returns the current status of the task in an EnhancedDrillthroughTaskInfoDTO object. |
| cancelEnhancedDrillthrough | Returns the last status of the task if the query has been cancelled, nothing otherwise |
| getEnhancedDrillthroughMaxRows/ | Returns the max rows value for the specified cube |
| executeEnhancedCount | Returns the number of aggregate DTOs returned as results of the query. |
Response examples
Below are examples for the different endpoints.Submit calls
The methodssubmitOrders and submitTemplateOrders return the list of task ids (String) as a result.
Example response for submitOrders:
Template calls
The methodsaddTemplateOrder and removeTemplateOrder do not return any specific value.
Clean-up calls
The methodclearOldCompletedTasks returns the number of tasks cleared.
Example response:
Check if task(s) is completed
The methodsisTaskCompleted and isTaskListCompleted simply return a boolean.
Example response for isTaskCompleted:
Status calls
The methodsgetTaskStatus, getTaskListStatus, cancelTask and cancelTaskList return a result based on the DeeTaskInfoDTO and DeeResultFileInfoDTO classes.
Below are examples of JSON response DTO objects:
JSON status call result format
Enhanced Drillthrough REST responses
Execute search facts query
Returns a list of Object[] representing the extracted attributes for each fact that fell into the query scope.Execute Enhanced Drillthrough query
Returns no content, just an ok or error status.Retrieve Enhanced Drillthrough result
The REST service returns a JSON object following theEnhancedDrillthroughTaskInfoDTO definition.
Example of output:
Cancel Enhanced Drillthrough
The REST service returns a JSON object following theEnhancedDrillthroughTaskInfoDTO definition.
Example of output: