API made to authenticate users with a database.
- Create user, edit info or delete it.
- Authentication and logout.
- Role based administration.
- Python
- SQLAlchemy
- Flask
- Flask-login
- SQLite
- Bcrypt
- Docker
git clone *projet-url*
cd *projects-directory*
pip3 install -r requirements.txt
Body Data |
Type |
Description |
username |
string |
Mandatory. User name. |
password |
string |
Mandatory. User password. |
role |
string |
Optional. User role, default is user, can be admin. |
Body Data |
Type |
Description |
username |
string |
Mandatory. User name. |
password |
string |
Mandatory. User password. |
Param Data |
Type |
Description |
id |
integer |
Mandatory. User's ID. |
Param Data |
Type |
Description |
id |
integer |
Mandatory. User's ID. |
Body Data |
Type |
Description |
username |
string |
Mandatory. User name. |
password |
string |
Mandatory. User password. |
role |
string |
Optional. User role, default is user, can be admin. |
Param Data |
Type |
Description |
id |
integer |
Mandatory. User's ID. |