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

RESTful api support in jasper reports 4.5.0 community version


kdstew

Recommended Posts

 I was going through the examples in JasperReports-Server-Web-Services-Guide.pdf and all was working until I got to the example on page 24.  

GET /jasperserver-pro/rest/resource/images/JRLogo?file=attachment HTTP/1.1

I entered into my browser:

http://jasperadmin:jasperadmin@localhost:8080/jasperserver/rest/resource/images/JRLogo?file=attachment

as the example described, but instead of downloading the JRLogo file I was displayed the error message:

request contains unsupported parameters

The only parameter I'm passing is file and the documentation specifically says that it is a parameter that can be passed here.  Is this functionality supported in the community version?

Any help would be appreciated, Thanks in advance.

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

OMG I spent hours trying this...thanks to you danparrott !

I am now able to download a .jrxml file, but there is no point in downloading a .jrxml file, I want to download a report that has been generated by the scheduler, but I can't because there is no PROP_ATTACHMENT_ID to the generated .pdf file...

 

I know we can download output reports when we first run them through REST with a PUT, using the UUID, but how can we download a contentResource ?

 

For example this link:

 

http://url:port/jasperserver/rest/resource/Reports/Output/report-201203150700.pdf

 

has no PROP_ATTACHMENT_ID and I can't download it...

 

I tried http://url:port/jasperserver/rest/resource/Reports/Output/report-201203150700.pdf?fileData=true

 

but it's not working.

 

Thanks

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...