/flask_api

Primary LanguagePython

Flask restful api

Installation

pip install -r requirements.txt

Run

python app.py

auto-migrate add

User database

id, email, username, password(hash), confirmed email(true or false)

API

/register

POST
{
    "email": "email",
    "username": "username",
    "password": "password"
}

/login

POST
{
    "email_or_username": "email_or_username",
    "password": "password"
}

/reset_password_request

POST
{
    "email": "email"
}

/reset_password

POST
{
    "token": "token",
    "password": "password"
}

/confirm

GET

yourlink/confirm/token