https://github.com/joshidivanshu/flask-rest
API for CRUD using Token Authentication(Customised) & SQLAlchemy
https://github.com/joshidivanshu/flask-rest
flask flask-restful flask-restplus flask-sqlalchemy login token-based-authentication tokenizaiton
Last synced: 3 months ago
JSON representation
API for CRUD using Token Authentication(Customised) & SQLAlchemy
- Host: GitHub
- URL: https://github.com/joshidivanshu/flask-rest
- Owner: joshidivanshu
- Created: 2021-04-12T05:53:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T06:07:28.000Z (about 4 years ago)
- Last Synced: 2024-12-27T04:43:13.200Z (5 months ago)
- Topics: flask, flask-restful, flask-restplus, flask-sqlalchemy, login, token-based-authentication, tokenizaiton
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-Rest
API for CRUD using Token Authentication(Customised) & SQLAlchemy## Installing Requirements
Use Virtualenv and install the packages.
```
pip install -r requirements.txt
```
## Running Flask Server
Go to the root dir and run the below line in the terminal.
```
python api2.py
```## Running CRUD Commands
## You can make these requests using POSTMAN
```
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)```