backend for getting sms configs and logging message for a few gps tracker units.
- refer to
runsync.py --helpfor more info - put db variables and admin key in
config.py - run
runsync.py
use repop.py to import some sample users and devices.
| endpoint | usage |
|---|---|
| /login | POST to get config |
| /message | POST log messages |
| /users | GET all, POST new |
| /users/:id | GET one, PUT to update, DELETE one |
| /devices | GET all, POST new |
| /devices/:id | GET one, PUT to update, DELETE one |
| /messages/:id | GET for user or device |
- http://flask.pocoo.org/docs/0.10/
- http://blog.miguelgrinberg.com/post/flask-migrate-alembic-database-migration-wrapper-for-flask
- http://garage.pimentech.net/libcommonPython_src_python_libcommon_javastringhashcode/