Hello everyone,
I wanted to list all reports of my jasper server but an unexpected result occured.
I have 2 folders with reports :
- /L4_logsitics
- L4_ESPACE_PUBLIC
When I used this API request : http://localhost:8080/jasperserver-pro/rest_v2/resources?resourceType=re...
0 reports from the "L4_ESPACE_PUBLIC" folder were found.
However, if I use this API request : http://localhost:8080/jasperserver-pro/rest_v2/resources?q=Listing
I can find my Listing report from the "L4_ESPACE_PUBLIC" folder.
Is it possible to list all reports of my jasper server with one API request ?
Thanks for your help
1 Answer:
Hello there,
Your problem is caused by a default limit on the "resources" API request, if you don't modify the "limit" parameter, only 100 results max will be fetched.
Use your query like this to deactivate pagination and fetch all results : http://localhost:8080/jasperserver-pro/rest_v2/resources?limit=0&resourceType=reportUnit.
Best regards