API for CRUD using Token Authentication(Customised) & SQLAlchemy
Use Virtualenv and install the packages.
pip install -r requirements.txt
Go to the root dir and run the below line in the terminal.
python api2.py
1. Create a user
2. Get all users (requires Admin privleges)
3. Get one user using the public ID. (requires Admin privleges)
4. Promote one user from user to admin (requires Admin privleges)
5. Delete a user (requires Admin privleges)
6. Login (when a user logs in a token is generated and is provided which he can use to perform different actions)
7. Token Authentication(expires in 30 minutes)