Added a User model to the master api, renamed default master db.
Refactoring code in progress.
Reorganize code, removed Flask-Script and manage files to make the setup for user simpler.
master api models refactored out into separate file.
Corrections in slave api, small changes in master api
Issue #29 seems to be solved. But why do I have to set app.app_context() whenever a db query is performed outside a direct view function.
Refer issue for details.
Root user is created by default if not exists; when master api is started.
Refs #27
I deleted the database file and now I get an Operational Error: table does not exist occurs when I run master API.
The table should have been created automatically. Something fishy. Trying to commit work and roll back and check.
Incorrect import of db object resolved (hopefully) causing issue #30.
Refs #30
Removed extra imports in master/models.py
Authentication added (HTTPBasicAuth), Authorization WIP
Refs #27
Allowed roles can be set for an api endpoint using allowed_roles decorator. Authoirzation issue solved!
HttpBasicAuth() object say auth provides auth.username function that can be used to get logged in user.
Refs #27