Skip to content

Mock service of VA/EN server for Exposure Notification System in Japan a.k.a. "COCOA".

License

Notifications You must be signed in to change notification settings

rocaz/COCOAmockservice

Repository files navigation

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

About

Mock service of VA/EN server for Exposure Notification System in Japan a.k.a. "COCOA".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published