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

Rest v2 Method to List Reports and Data Sources?


william.taylor2_1

Recommended Posts

I am somewhat new to JasperReports Server Rest v2 calls...does anyone know if there is a Rest v2 string that will include in its results all the reports on the target server AND include each report's data source? We have multiple databases mapped to our reports and it would be helpful to confirm in a list or Rest export what data source is used for each report. Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This involves two separate steps.  Please see Postman HTTP examples below.

resource search on the repository fot all reportUnit type objects.

GET /jasperserver-pro79/rest_v2/resources?type=reportUnit HTTP/1.1Host: localhost:8080Authorization: Basic c3VwZXJ1c2VyOnN1cGVydXNlcg==Cookie: userLocale=en_US; JSESSIONID=7B875C70FBC6DA4A13CA03C921DCD9A5[/code]

A resource details search on the reportUnit resources returned from step 1.

GET /jasperserver-pro79/rest_v2/resources/public/Samples/Reports/01._Geographic_Results_by_Segment_Report HTTP/1.1Host: localhost:8080Authorization: Basic c3VwZXJ1c2VyOnN1cGVydXNlcg==Cookie: userLocale=en_US; JSESSIONID=7B875C70FBC6DA4A13CA03C921DCD9A5[/code]
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...