Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.16 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.16 KB

COCOAmockservice

Mock service of Verification and EN Key server for Japanese Exposure Notification Service a.k.a. "COCOA".

Python: 3.7+

License: MIT

Requirement

  • Python 3.7+
  • Flask 1.1.2+
  • I strongly recommend to use Pipenv

Quick Start

  1. Initiarize local SQLite db.
./init_db.sh
  1. Set environment variable using example.env
. example.env
  1. Install python packages required.
pip install -r requirements.txt
  1. Start as Flask development server
flask run

or

python app.py

API

  • 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

License

MIT

Copyright (c) 2020 rocaz.net

See Also

https://developers.google.com/android/exposure-notifications/exposure-notifications-api

https://developer.apple.com/documentation/exposurenotification