Skip to main content
14-Alexandrite
July 23, 2025
Question

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

  • July 23, 2025
  • 2 replies
  • 233 views

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

Catalina
Community Moderator
July 30, 2025

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
HelesicPetr
22-Sapphire II
22-Sapphire II
August 7, 2025

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