Support for cursor-based API pagination now available with relative path

Note:This feature is available with Automation.

Policy designers can now use the policy template pagination functionality to paginate through the API response that contains links to the next page as a relative path. This enhancement was introduced as most of the Flexera One APIs and the third-party APIs now provide a relative path instead of a full URL for pagination.

To enable pagination for APIs providing either a relative path or full URL as link to the next page, set the uri attribute as true in the pagination block.

pagination "flexeraOne_pagination” do 

  get_page_marker do 

    body_path jmes_path(response, "nextPage")

  end 

  set_page_marker do 

    uri true 

  end 

end 

Previously, only full URL was supported.

For more information, see Pagination in the Flexera One Help.