DevLinux Posted October 30, 2020 Share Posted October 30, 2020 Environment:JavaMavenJasperReports Server: 7.xI would like to deploy a report to JasperReports Server using the REST API.I do not know if this is possible, maybe it is only possible with the API (including .jars as dependencies, and using that).Does anyone have a bare bones minimal example of deploying a .jrxml to the server by any means (that I can pull from a git repo that includes a pom.xml)?1. authenticate2. read a .jrxml or provide the path to a .jrxml3. deploy to the server1..3 would get me a long ways, I'm going through the documentation meticously, and getting no where.I would like to not use any 3rd party SDK, I need to use just Java/JDK, built in libraries, and other imports needed that can be pulled in through pom.xmlIt is not obvious in the REST API how to do this, and may not even be possible. If that is not possible, I could include a jasperreports-server-api.jar as a dependency and code that, but need a barebones example. Link to comment Share on other sites More sharing options...
narcism Posted November 2, 2020 Share Posted November 2, 2020 You could give it a try with the jrs-rest-java-client that you can find here: https://github.com/Jaspersoft/jrs-rest-java-clientand some sample code in this Stackoverflow post here: https://stackoverflow.com/questions/37567237/bad-request-when-trying-to-upload-report-unit-in-jasperserver Link to comment Share on other sites More sharing options...
DevLinux Posted December 17, 2020 Author Share Posted December 17, 2020 I looked at this (jrs-rest-java-client) and it is so convoluted and outdated, it does not work. The StackOverflow post was not the best example. It is quite surprising that Tibco Jaspersoft has no developer advocates that maintain a git repo of examples to help folks out. With every other API I have ever used, the company/org maintains a git repo of basic examples to get started.The documentation for the REST API has not changed from 7.5.1...7.9.0 and provides very little help. 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