You might want to check out RESTx . It is an open source platform for easily creating RESTful resources. It allows you to write custom data access and integration logic in Java or Python. Getting data from several sources and combining it is what it was done for, so it should be very close. Data output is made in accordance with the user's request. For example, another JSON data source or the same data as in HTML.
HTML rendering currently matches the inline template. However, this should be fairly easy to modify. I am one of the developers of this project, so if you need special features of the template, let me know and I will see what I can do.
To give you an example: suppose you have two JSON resources, you would write it in your code (I gave a Python example here, but a Java example would look very similar):
status, data_1 = accessResource("/resource/some_resource") status, data_2 = accessResource("/resource/some_other_resource")
Also consider an example for easy data integration .
source share