A wiki is under development HERE.
To build the docker image, run:
docker build -t flask-app:latest .
To run the docker image locally:
docker run -p 5000:5000 flask-app
The API documentation is available at <flask_endpoint>/api/v1/doc
An example GET:
curl --request GET \
--url http://127.0.0.1:5000/api/v1/devices/device
Another GET example:
curl --request GET \
--url 'http://127.0.0.1:5000/api/v1/devices/2'
An example POST:
curl --request POST \
--url http://127.0.0.1:5000/api/v1/devices/device \
--header 'content-type: application/json' \
--data '{
"device-id": "sens03",
"timestamp": "1581108249.445857",
"temperature": "54.2",
"unit": "Fahrenheit"
}'