EOSC-synergy / FAIR_eva

Apache License 2.0
4 stars 4 forks source link

New API path for listing plugin's endpoints #181

Closed orviz closed 2 months ago

orviz commented 3 months ago

FAIR EVA's API expects the API endpoint to request the (meta)data, which puts the burden on the user as (s)he needs to know this value for triggering the evaluation. This situation could be easily avoided since this value is already known by the FAIR EVA's API through within each plugin's config.ini.

A solution is to create a new API path /endopoints that provide all the plugin's endpoints. A sample response could be:

{
    "digital_csic": "http://digital.csic.es/dspace-oai/request",
    "epos": "https://ics-c.epos-ip.org/development/k8s-epos-deploy/dt-geo/api/v1/"
}

This allows to use query parameters, such as /endpoints?plugin=epos that would return:

https://ics-c.epos-ip.org/development/k8s-epos-deploy/dt-geo/api/v1/