helio-ecosystem / helio-rest

An API REST for Helio
2 stars 1 forks source link

Helio REST API

Quickstart

Using docker run docker-compose with the following recipe

version: '3'
services:
  helio-publisher:
    image: acimmino/helio-rest:latest
    volumes: 
      - ./local/:/usr/src/app/local/
      - ./db/:/usr/src/app/db/
    ports:
      - "4567:4567"

It creates two folders, one with the database containing all the mappings and configuration so security copies can be made and, another, that is empty in case some local files are required for the mappings.

Using java download the latest released version and run the script run.sh

API

Endpoint Method Description
/api/ GET Returns the list of data endpoints provided by the service
/api/:id POST Creates a translation task that using the mapping sent in the body of this request. You can use a specific mapping compiler (BUILDER component) using the URL parameter ?builder=[BUILDER_NAME]
/api/:id DELETE Deletes the translation task with the provided :id
/api/:id/mapping GET Returns the mapping registered for the translation task associated to the :id
/api/:id/data GET Returns the translated data as a result of the translation task
/component GET Returns the list of components registered in the service that can be used in the mappings
/component POST Register the component sent in the body of this request
/component DELETE Deletes the component with the provided :id

Settings

Several features of the service can be set up using arguments

Acknowledgements

This project has been partially funded by:

Project Grant
The European project VICINITY from the European Union's Horizont 2020 research and innovation programme under grant agreement Nº688467.
  The European project BIMERR from the European Union's Horizont 2020 research and innovation programme under grant agreement Nº820621.
The European project DELTA from the European Union's Horizont 2020 research and innovation programme under grant agreement Nº688467.
The European project AURORAL from the European Union's Horizont 2020 research and innovation programme under grant agreement Nº101016854.
The European project COGITO from the European Union's Horizont 2020 research and innovation programme under grant agreement Nº958310.