Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
To support pagination, we need ability to get entities from a certain ID by providing a new param called fromid.
For example on a page of 10 jobs, our first call will be like
http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&limit=11
When user hits next, we would like to call
http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromid=JID11&limit=11
and continue on for further Next clicks
On hitting back, we will make similar calls for previous items
http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromid=JID1&limit=11
fromid should be inclusive of the id given.