sushobhan.b Posted May 11, 2020 Share Posted May 11, 2020 Hi All, I am getting values for jasper server likehttp://<host>:<port>/jasperserver[-pro]/rest_v2/resourcesbut i am not geting running reports using below commands.http://<host>:<port>/jasperserver[-pro]/rest_v2/reportshttp://<host>:<port>/jasperserver[-pro]/rest_v2/reportExecutionsDo i need to modify anything in server to work those coomand ?please help.Thanks Link to comment Share on other sites More sharing options...
vchiem Posted May 13, 2020 Share Posted May 13, 2020 It should be a matter of getting the right REST request format. There are examples in the REST API guide. The guide is downloadable from https://community.jaspersoft.com/documentation?version=59011CHAPTER 13 REST API REFERENCE - THE reports SERVICE Link to comment Share on other sites More sharing options...
sushobhan.b Posted May 13, 2020 Author Share Posted May 13, 2020 @vchiem Yes I know about those formats, but when I am trying to get the report executions using this URI i am not getting anything.http://:/jasperserver[-pro]/rest_v2/reportExecutionsIs anything i have to mention in XML properties? Link to comment Share on other sites More sharing options...
matthias.budde Posted July 29, 2020 Share Posted July 29, 2020 I have the same issue. I am running a fresh Jasperserver CE in docker (bitnami image). I can interactively log into the server and create a test report that successfully runs. However, using the REST API, whenever I request http://<host>:<port>/jasperserver/rest_v2/reports,I get an empty response with HTTP status 204 (no content). Other resources, such as login, logout, or http://<host>:<port>/jasperserver/rest_v2/resourcesyield meaningful results. So the REST API works correctly in principle.Is there some configuration change necessary so that reports can be listed via REST? Link to comment Share on other sites More sharing options...
matthias.budde Posted July 31, 2020 Share Posted July 31, 2020 I am unsure whether this solves your problem, but for my own (see comment above), it was a matter of wrong expectations combined with a wrong user. I assumedhttp://<host>:<port>/jasperserver[-pro]/rest_v2/reportswas supposed to list all reports, but that is not the case.Similarly, I believe http://:/jasperserver[-pro]/rest_v2/reportExecutionsonly shows the reports that are actually currently executing, not those scheduled to do so. Eventually it did work for me after using the correct requests and creating a new user with the role ROLE_USER (see also my answer to my problem at https://community.jaspersoft.com/questions/1163826/reports-rest-request-yields-empty-response-jasperreport-server) Link to comment Share on other sites More sharing options...
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