Jump to content
We've recently updated our Privacy Statement, available here ×
  • Retrive Repository Folder Structure With REST API


    akovach
    • Features: JasperReports Server, Repository, URLs, Web Services Version: v7.1, v7.1.0 Product: JasperReports® Server

    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

    REST API Login Service

    REST API Resources Service


    ref case - btimakov 01400354 

     


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...