Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.
/ api-download Public archive

Public API for fetching pseudonyms of users confirmed infected

License

Notifications You must be signed in to change notification settings

ito-org/api-download

Repository files navigation

ito - Download API

Public API for fetching pseudonyms of users confirmed infected

Tests

Requirements

  • Python 3.8+
  • MongoDB database
Quick start Python 3.8 (Debian based Linux)
sudo apt install python3.8 python3.8-pip
sudo update-alternatives --config python3

Then select the correct Python version.

Installation

Install and initialize Poetry. Run

poetry install
Quick start Poetry (UNIX)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source ~/.poetry/env

Configuration

Copy the config.py.example to config.py and adjust the database connection URI.

Development

Run the local Flask development server using

export POETRY_ENV="development"
poetry run flask run

Then browse to http://localhost:5000/v0/cases?uuid=af7af6b6-eb02-4d12-b554-f5cb089afc5d for example.