This folder, namely the services
subfolder includes the REST services that are used by Taverna workflows. Please find more information about them below.
Services created by Hendrik Molder. Where indicated, parts of Hapsoro's code is re-used.
For more detailed docuemntation please see REST API documentation.
Downloads a file to the webserver - this file can be used for processing later. Returns the file name, which can be passed to other scripts (such as weather json to csv) as they will always look for the file in the downloads
directory.
NB! When you shut down the server, all files in downloads
directory are deleted!
To start the web server, first ensure you have Python installed. Then navigate into the new_service
directory in your terminal and follow these steps.
- Install all required packages by running
pip install -r service/requirements.txt
. - Start the webserver by running
python service/main.py
.
.
├── docs (Documentation in Markdown)
├── downloads (Downloads directory for the web server)
├── notebooks (Jupyter Notebooks used for development)
├── service (The REST services as Python scripts)
└── test_data (Data used for testing)