login, change password and user information API using django rest Json Web Token
django djangorestframework allauth djangorestframework-simplejwt corsheaders
Create and cativate virtual environment
python -m venv env
env\Scripts\activate (on windows)
source env/bin/activate (linux)
install dependencies
pip install -r requirements.txt
make migration and migrate
python manage.py makemigration
python manage.py migrate
Create superuser
python manage.py createsuperuser
run dev server
python manage.py runserver
get access and refresh token
{ "username": "", #use email for login "password": "" }
refresh access token { "refresh": refresh token }
Change user password (require access token) { "old_password": "", "password": "", "password2": "" }
Change user name and email address (require access token) { "id": , "email": "", "first_name": "", "last_name": "", }