Relax API makes use of React JS, a UI framework, to load data asynchronously on a single page application. Although this approach may work for debugging purposes, it does not favor integration with third-party applications/systems (the returned page does not include the data);
In spite of the URL arguments (:source, :id, :filename and :index), on load Relax API always makes use of the first local group (local/uibk/local/0);
Adds support to load groups synchronously. This way a third-party application will be able to process the returned page accordingly (it will include the data!);
Adds logic to set the proper :source, :id, :filename and :index when loading Relax API single page application;
Feel free to suggest other approaches to address the reported issues/features, I'm not really a React JS expert. Moreover, I think that Relax API should be modified to return data only (instead of a web page). Not sure about the best way to do that, but I'm developing a workaround to address that.
Reference issues
What does this implement/fix?
How to test this PR?
Test it live at https://rlaiola.github.io/relax/.
Other Comments
Feel free to suggest other approaches to address the reported issues/features, I'm not really a React JS expert. Moreover, I think that Relax API should be modified to return data only (instead of a web page). Not sure about the best way to do that, but I'm developing a workaround to address that.