All the parameters described in the
Standalone Options section can also be
defined through a simple GET request so a parametrized URL. With an
intermediate POST request the boundaries of this small standalone
interface can even be skipped and any
network and
configuration that is
applicable on the Drugst.One plugin itself, can be loaded.
The following depicts an explicit example, how a
simple network can be loaded and configured through an URL:
The available options are equivalent to those of the previous section and can
be targeted as follows:
For configurations with more than 2,048 characters or additional network
parameters or own edge or node groups we also provide a way to load these
programatically in our Standalone Drugst.One application. This option consists
of two separate request: first a POST request to transmit all the necessary
network and configuration data to the backend service and receive an
associated ID and secondly then again a GET request to the Standalone
application with said received ID.
A skeleton of the first POST request call is shown below:
Network and
config objects can be defined
exactly as the ones handed to the Drugst.One plugin, further defined in the
customization section. The call
returns a networkID that can be used to load this saved network in the
Standalone application. This UUID contains 32 random alphanumeric characters
(e.g. "cbfa6a27ded04b20963c04376e212ca6"). It is then used to request the
loading of the referenced graph into the Drugst.One Standalone by a simple GET
request:
Currently node and edge styles are still based on the design of the
Drugst.One website to ensure the readablity of the network. This may be
changed in the future!