Mock service of Verification and EN Key server for Japanese Exposure Notification Service a.k.a. "COCOA".
- Python 3.7+
- Flask 1.1.2+
- I strongly recommend to use Pipenv
- Initiarize local SQLite db.
./init_db.sh
- Set environment variable using example.env
. example.env
- Install python packages required.
pip install -r requirements.txt
- Start as Flask development server
flask run
or
python app.py
- POST /diagnosis
- Register positive's TEKs through Verification server.
- GET /list.json
- Get TEK ZIp list json from EN Key server.
- GET /n.zip
- GET TEK ZIP from EN Key server.
Plase see examples_curl.txt
MIT
Copyright (c) 2020 rocaz.net
https://developers.google.com/android/exposure-notifications/exposure-notifications-api
https://developer.apple.com/documentation/exposurenotification