jeanpierrepolnareff91 Posted June 13, 2022 Posted June 13, 2022 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_PUBLICWhen I used this API request : http://localhost:8080/jasperserver-pro/rest_v2/resources?resourceType=reportUnit0 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=ListingI 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
Solution arnaudsimon091 Posted June 14, 2022 Solution Posted June 14, 2022 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now