Context
API-based components are needed in order to have a proper microservice based execution. These components will perform small tasks by performing a request to the API endpoint.
Possible solution
- Use
FastAPI to generate semi-automatically an API endpoint based on odtp.yml. The user will define a bash script that will run every time that the api is called. This run will follow the same structure of an ephemeral component. A temporary folder will be generate where to place the input/output files needed.
As a result of the run, the API could provide directly the output via JSON or via an URL to an output object stored in Minio.
Acceptance criteria
Related repositories
odtp-component-template
odtp-component-example
Context
API-based components are needed in order to have a proper microservice based execution. These components will perform small tasks by performing a request to the API endpoint.
Possible solution
FastAPIto generate semi-automatically an API endpoint based onodtp.yml. The user will define a bash script that will run every time that the api is called. This run will follow the same structure of anephemeralcomponent. A temporary folder will be generate where to place the input/output files needed.As a result of the run, the API could provide directly the output via JSON or via an URL to an output object stored in Minio.
Acceptance criteria
odtp-.ymlparsing and API generation of ODTP component viaodtp-component-templateFastAPI-based minimal example of ODTP component (odtp-component-example)Related repositories
odtp-component-templateodtp-component-example