django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

IMPROVEMENT: single point of access #213

Open agy-why opened 1 year ago

agy-why commented 1 year ago

IVOA SOAP, REST API, Direct DB access

Daiquiri accesses science data via three different ways. This mostly for historical reason.

graph LR;
    USER-->JS;
    JS-->REST;
    JS-->ScienceDB;
    USER-->IVOASoap;
    IVOASoap-->ScienceDB;
    USER-->REST;
    REST-->MetaDB;
    IVOASoap-->MetaDB;
    REST-->ScienceDB;

With the renewal of the JS interface for daiquiri (toward react) we may ask our selves if we wish to simplify this aspect of daiquiri.

I a standard JS web application the structure is as follow:

graph LR;
    USER-->JS;
    JS-->REST;
    REST-->ScienceDB;

Since we want to use this construct for the JS interfaces, I suggest to adapt the other interfaces to the same construct, creating a single point of access to the DB: the REST API.

graph LR;
    USER-->JS;
    USER-->REST;
    JS-->REST;
    USER-->IVOASoap;
    IVOASoap-->REST;
    REST-->ScienceDB;
    REST-->MetaDB;