Thank you for choosing analysis_server service - a service to analyze a birthday gifts demand by month.
Install dependencies with pip:
$ pip install -r requirements.txt
$ python3 app.py
$ gunicorn app:app -w 4 -b 0.0.0.0:8080
Use supervisor to manage the process(monitor state, restart, etc.)
- Add a new citizen import:
POST http://0.0.0.0:8080/imports - Update a citizen in an import:
PATCH http://0.0.0.0:8080/imports/<import_id>/citizens/<citizen_id> - Get all citizens in an inmport:
GET http://0.0.0.0:8080/imports/<import_id>/citizens - Get presents number grouped by a citizen by months:
GET http://0.0.0.0:8080/imports/<import_id>/citizens/birthdays