I am running a fresh Jasperserver CE in docker (bitnami image). I can interactively log into the server and create a test report (without data adapter) that successfully runs. However, using the REST API, whenever I request
I get an empty response with HTTP status 204 (no content). Other resources, such as login, logout, or
yield meaningful results. So the REST API works correctly in principle.
My request is properly authenticated with the credentials of an admin user. The report was built in Jaspersoft Studio 6.13, JasperReports Server version is 7.5.
What am I missing? Is there some configuration change necessary so that reports can be listed via REST?
Ok, it seems I got it all wrong. I assumed that
would list all reports, as that was my expectation from working with other REST APIs. This assumption was wrong.
After playing around and reading the manual more carefully than before, I eventually got it right. The things that triggered the 403 access denied when trying my approach in the comment above were (a) that I got the URL wrong (missing "reports/") and (b) that I forgot the file extension (.pdf in my case)
did the trick. I still don't get why this can only be done by a user (ROLE_USER) and not an admin (ROLE_ADMINISTRATOR), but that is not a practical issue for me.