Requirement
Some JasperReports Server Administrators might want to check or monitor Repository structure of JasperReports Server or embedding it in custom application. Rest API can help to achieve this requirement.
Solution
User can retrieve a structure of JasperReports Repository with Resources Service. The Request will contain several parameters:
type=folder limit=1000 expanded=true
Also authentication credentials might be needed, if Authentication was not passed before. The final Request will look like:
GET http://host:port/jasperserver-pro/rest_v2/resources?expanded=true&limit=1000&type=folder&j_username=userLogin&j_password=userPassword
If Organization repository structure is needed, you can use %7Corganization_id parameter as in Login request
GET http://host:port/jasperserver-pro/rest_v2/resources?expanded=true&limit=1000&type=folder&j_username=userLogin%7Corganization_id &j_password=userPassword
User will get all folders in XML/JSON format.
References
ref case - btimakov 01400354
Recommended Comments
There are no comments to display.
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