Skip to content

Latest commit

 

History

History

new_services

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

New Web Services

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.

Services

For more detailed docuemntation please see REST API documentation.

Wrangling services

  1. Weather JSON to CSV
  2. Union two CSV files

File upload/download services

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!

  1. Raw file upload
  2. File upload via file URL
  3. File download

Running

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.

  1. Install all required packages by running pip install -r service/requirements.txt.
  2. Start the webserver by running python service/main.py.

Structure

.
├── 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)