Skip to main content
Solved

Do Cognite OData APIs also offer cursor implementation like cursor capabilities on Cognite REST endpoints?

  • 23 January 2023
  • 1 reply
  • 24 views

Forum|alt.badge.img

Do Cognite OData APIs also offer have cursor implementation like cursor capabilities on REST endpoints?

Best answer by Dag Brattli

Yes, look for the `"@odata.nextLink"` in the JSON response when requesting an entity collection such as Assets. This is the URL you need to use to get the next page in the collection. See example at https://www.odata.org/getting-started/basic-tutorial/ for retrieving entity collections. Note that no cursors on expanded properties. I.e you should navigate to DataPoints and list the entity set, instead of expanding DataPoints within TimeSeries.

View original

Yes, look for the `"@odata.nextLink"` in the JSON response when requesting an entity collection such as Assets. This is the URL you need to use to get the next page in the collection. See example at https://www.odata.org/getting-started/basic-tutorial/ for retrieving entity collections. Note that no cursors on expanded properties. I.e you should navigate to DataPoints and list the entity set, instead of expanding DataPoints within TimeSeries.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings