List view from REST endpoint - pagination (HATEOS)

  • 11 May 2020
  • 1 reply
  • 4 views

K2 5.3

 

Hi, I have create a list view based on a REST endpoint which (along with data on JSON format) also provides HATEOS such as below.

 

My question is how K2 SmartForm list view can utilize this information? Thanks.

 

  "hasMore": true,  "limit": 200,  "offset": 0,  "count": 200,  "links": [    {      "rel": "self",      "href": "https://mycompanyurl/hol/"    },    {      "rel": "describedby",      "href": "https://mycompanyurl/hol/"    },    {      "rel": "first",      "href": "https://mycompanyurl/hol/"    },    {      "rel": "next",      "href": "https://mycompanyurl/hol/?offset=200"    }  ]}

1 reply

Hello,

We should be able to create a REST Service Instance that points to this REST URL. Please see the following Documentation.
https://help.k2.com/onlinehelp/K2Cloud/UserGuide/Update_11/default.htm#ServiceBrokers/EndPoints/REST_Endpoint.htm

Reply