cancel
Showing results for 
Search instead for 
Did you mean: 

Adding the Paging feature to a Custom Rest API

Calvin_Glass
05 Base Camper

Adding the Paging feature to a Custom Rest API

Hi All,

 

Is it possible to add  the paging feature to a custom Rest API?

 

To give a bit more detail, when you click into the default CIMapping API via Swagger, you get a bunch of options. One of these options (the 3rd GET) allows you to specify a customer ID, page number, and page size filters to be applied to the results.

 

image.png

Is there a way to add these features to a custom API? Specifically the paging option.

 

Thanks,

Calvin

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Shoaib_Dilawar
12 Sherpa

Re: Adding the Paging feature to a Custom Rest API

@Calvin_Glass,

 

/rest/v1/cimapping is a different API than /rest/v1/data and so while cimapping allows different options, /data is based on PQL views created in the RestAPIDataset xml. It only allows you to specify url parameters that can be used in the PQL query. It may allow you to apply filters like 'TOP N' and where-clause and nodes etc, paging is not an option it currently supports.


If my reply answered your question please click on the 'Accept as Solution' button to help others find the answer.
Thanks,
Shoaib

View solution in original post

2 REPLIES 2
Shoaib_Dilawar
12 Sherpa

Re: Adding the Paging feature to a Custom Rest API

@Calvin_Glass,

 

/rest/v1/cimapping is a different API than /rest/v1/data and so while cimapping allows different options, /data is based on PQL views created in the RestAPIDataset xml. It only allows you to specify url parameters that can be used in the PQL query. It may allow you to apply filters like 'TOP N' and where-clause and nodes etc, paging is not an option it currently supports.


If my reply answered your question please click on the 'Accept as Solution' button to help others find the answer.
Thanks,
Shoaib
Calvin_Glass
05 Base Camper

Re: Adding the Paging feature to a Custom Rest API

Thanks Shoaib, any idea if there are plans to add this feature in future releases?

Webinar: Keep the modern workforce connected

Unified Communications has always been an important part of companies' digital transformation efforts due to its ability to enable rich virtual collaboration and communication. But with COVID-19, we've reached a break-through point.

Join Bill Haskins, Sr. Analyst & Partner, Unified Communications at Wainhouse Research, and John Ruthven, CEO at IR discuss UC challenges companies are experiencing due to the COVOID-19 crisis.

Join webinar
Top Liked Members