Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

ito-org/api-upload

Repository files navigation

ito - Upload API

Public API for supplying and verifying 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 send a POST request to http://localhost:5000/v0/cases/report for example.

About

Public API for supplying and verifying pseudonyms of users confirmed infected

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages