Labs64 / NetLicensing-Community

NetLicensing Community Support
https://netlicensing.io
MIT License
5 stars 1 forks source link

Retrieve all entities (> 100) using list methods #19

Closed r-brown closed 3 years ago

r-brown commented 3 years ago

Vendor request

We need to retrieve all Licensees using RESTful API and list method; receive 100 entries out of more than 900 however. How all entries can be accessed?

r-brown commented 3 years ago

Indeed, every NetLicensing entity offering a list endpoint (REST), which can be used to provision NetLicensing data to other systems, such as DWH, BI, Reporting, etc.

The result set of the list operations is limited to 100 entries and contains information about data set available in the NetLicensing:

Sample response

...
<ns2:items pagenumber="0" itemsnumber="100" totalpages="2" totalitems="108" hasnext="true">
  <ns2:item type="License">
...

In the case of hasnext attribute is set to true the next entities subset can be requested using following query params (supported by each list endpoint):

Sample request / response

GET | https://go.netlicensing.io/core/v2/rest/licensee?filter=page=1;items=100
...
<ns2:items pagenumber="1" itemsnumber="8" totalpages="2" totalitems="108" hasnext="true">
  <ns2:item type="License">
...