This is a boiler plate or practice project for django rest framework. I will practice all possible steps for django rest api. You can clone or fork and practice from it.
To download it you have to clone the project to your local machine
git clone https://github.com/moshfiqrony/django-rest.git
To use it you need PyChamr , Visual Studio Code
cd django-res
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
- users model
- iubat model
- /api/user/signin/ - registration with no permission required.
- /api/user/login/ - login with no permission required.
- /api/usre/logout/ - logout user need a Authorization Token in header
- /api/user/profile/ - to get user profile you must call the api with a Authorization Token in header
- /api/user/changePassword/ - to reset an user password you must call the api with a Authorization Token in header.
- /api/iubat/addstudent/ - to add a student an user at first need to signin then call the api with a valid email address
- /api/iubat/updatestudent/ - to update student profile info
- /api/iubat/student/ - accepts POST GET PUT method for student profile