cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Need to add Query Parameters $top and $skip to custom REST Endpoint

Rohaan
14-Alexandrite

Need to add Query Parameters $top and $skip to custom REST Endpoint

Hello Greetings!

 

I have developed a custom endpoint inside custom domain to fetch Documents of WTDocument subtype named "QMS Document" based on three input parameters "Library" "Folder" and "State", However when I try to call this service from Thingworx, unable to utilize "$top"  and $skip" parameters, since I need to allow pagination within Thingworx UI to select range of Documents to be displayed on single page, currently this functionality seems useless as I can see all the Documents fetched for specific folder within the library and cannot filter using range. I have used custom code to query Documents based on search condition for provided three input parameters.

 

Need assistance whether this is possible to add classic OOTB query parameters in custom import.json

 

2 REPLIES 2
Catalina
Moderator
(To:Rohaan)

Hi @Rohaan 

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Best regards,


Catalina
PTC Community Moderator
PTC
HelesicPetr
22-Sapphire II
(To:Rohaan)

Hi @Rohaan 

I guess that you can use the $top  and $skip parameters in your request to call custom rest point, but you have to deal with this information in your java code by yourself

PetrH

Announcements
Top Tags