Compare contents of two JasperReport resources
Posted on February 21, 2022 at 3:33am
Hi,
I try to find REST API command to compare two resources contents (JasperReport). I have folder structure describing environments with their resources (structure is <ENV_NAME>\<PRODUCT_NAME>\<JASPERREPORT_RESOURCE_NAME>). Different enviroments can contain same JasperReports by name. For deployment purpose between folders I need to compare these resources.
Example (need to compare JasperReport contents in these folders): develop\product1\jasper_report_resource1 and test1\product1\jasper_report_resource1
Thanks for any answer/
R.
Joined: Aug 23 2019 - 1:00am
Last seen: 1 year 2 months ago
Posted on February 28, 2022 at 8:24am
There's no outside of the box comparison RestAPI, but you can easily create a script, a web service... that will compare the JSON returned from JasperReports RestAPI rest_v2/resources endpoints that allow you to list your resources in the repository.
Joined: Mar 17 2020 - 11:53am
Last seen: 3 days 5 hours ago
Posted on February 28, 2022 at 11:28pm
Thanks you for answer. However compare returned JSON is not enough. Compared resources can have same names with different contents. I thinking about use Git API.
Joined: Aug 23 2019 - 1:00am
Last seen: 1 year 2 months ago