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/
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.
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.