pyvenv-3.5 venv
source venv bin activate
pip install -r requirements.txt
python initdb.py
python run.py
$ curl -X POST -d '{"name": "Jeff Knupp", "type": "patient"}' -H "Content-Type: application/json" http://127.0.0.1:5000/user
{
"birthdate": null,
"critical": null,
"id": 1,
"mail": null,
"mobile": null,
"name": "Jeff Knupp",
"type": "patient"
}
$ curl -X POST -d '{"user_id": "1", "origine": "appli mobile", "type_data": "poids"}' -H "Content-Type: application/json" http://127.0.0.1:5000/data
{
"date": null,
"doc_url": null,
"id": 1,
"origine": "appli mobile",
"type_data": "poids",
"user_id": 1
}
$curl -X POST -d '{"data_id": "1", "unit": "Kg", "value": "62"}' -H "Content-Type: application/json" http://127.0.0.1:5000/ldata
{
"data_id": 1,
"id": 1,
"unit": "Kg",
"value": "62"
}