A RESTFul API for managing LabCas workflows.
This comes in 2 implementations:
- A Flask-based REST API service (obsolete)
- An AWS API gateway + lambda
The reference OpenAPI specification is in the file ./docs/openapi.yml.
Use the AWS console to create a new API gateway (REST API).
Import the file ./docs/openapi.yml to create the API structure.
A layer is a lambda component containing re-usable functions. We use it for the code helping to connect to the restful API.
Package it as follows:
cd ./aws/layers/labcas-mwaa-restful-api-connection
zip -r labcas-mwaa-restful-api-connection.zip *
Upload the zip file as a layer in the AWS console.
To Be Completed
A demo UI is provided to demonstrate the API features.
Follow instructions in the (workflow-api-client-demo repository)[https://github.com/jpl-labcas/workflow-api-client-demo]
pip install -e '.[dev]'
cd docs
make html
Test the web site created:
cd _build/html
python -m http.server 8000
Use your browser to go to http://localhost:8000 and check the documentation.