REST API : List all reports problem

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


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

jeanpierrepolnareff91's picture
Joined: May 22 2019 - 1:10am
Last seen: 7 months 2 weeks ago

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

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 4 months 1 week ago