Jump to content
We've recently updated our Privacy Statement, available here ×

REST API : List all reports problem


Go to solution Solved by arnaudsimon091,

Recommended Posts

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=reportUnit

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...