william.taylor2_1 Posted September 20, 2021 Share Posted September 20, 2021 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 More sharing options...
william.taylor2_1 Posted September 20, 2021 Author Share Posted September 20, 2021 Sorry...if needed, we are on an older server release - 6.1.1 Link to comment Share on other sites More sharing options...
jabrown Posted September 21, 2021 Share Posted September 21, 2021 This involves two separate steps. Please see Postman HTTP examples below.A 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 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