This is a backend for the Shumanay medicine department website. It is built with Django and Django Rest Framework. It provides the following features:
- Anyone can view information about the medicine department
- Admin can add, update, delete all information about the medicine department
- OTP code is sent to the user's email when they forget their password
- Django
- Django Rest Framework
- Docker
- Docker Compose
- Django Rest Framework Simple JWT
- drf-yasg
- Redis
- Django Cors Headers
- Celery
- Clone the repository
git clone https://github.com/Diyarbekoralbaev/shumanay_rmb_backend_drf
- Change directory
cd shumanay_rmb_backend_drf
- Setup the application
make setup
- Build the application
make build
- Run the application
make run
- POST
/users/login/
- Login user - POST
/users/logout/
- Logout user - POST
/users/signup/
- Register user - POST
/users/forgot-password/
- Forgot password (send email) - POST
/users/reset-password/
- Reset password (via otp code sent to email) - POST
/users/change-password/
- Change password (current user) - POST
/users/login/refresh/
- Refresh token - GET
/users/me/
- Get current user
- GET
/documents/
- Get all documents - POST
/documents/
- Create a new document - GET
/documents/{id}/
- Get document by id - PUT
/documents/{id}/
- Update document by id - PATCH
/documents/{id}/
- Partial update document by id - DELETE
/documents/{id}/
- Delete document by id
- GET
/gallery/
- Get all gallery images - POST
/gallery/
- Create a new gallery image - GET
/gallery/{id}/
- Get gallery image by id - PUT
/gallery/{id}/
- Update gallery image by id - PATCH
/gallery/{id}/
- Partial update gallery image by id - DELETE
/gallery/{id}/
- Delete gallery image by id
- GET
/news/
- Get all news - POST
/news/
- Create a new news - GET
/news/{id}/
- Get news by id - PUT
/news/{id}/
- Update news by id - PATCH
/news/{id}/
- Partial update news by id - DELETE
/news/{id}/
- Delete news by id
- GET
/shrmb/admissions/
- Get all admissions - POST
/shrmb/admissions/
- Create a new admission - GET
/shrmb/admissions/{id}/
- Get admission by id - PUT
/shrmb/admissions/{id}/
- Update admission by id - DELETE
/shrmb/admissions/{id}/
- Delete admission by id
- GET
/shrmb/departments/
- Get all departments - POST
/shrmb/departments/
- Create a new department - GET
/shrmb/departments/{id}/
- Get department by id - PUT
/shrmb/departments/{id}/
- Update department by id - DELETE
/shrmb/departments/{id}/
- Delete department by id
- GET
/shrmb/doctors/
- Get all doctors - POST
/shrmb/doctors/
- Create a new doctor - GET
/shrmb/doctors/{id}/
- Get doctor by id - PUT
/shrmb/doctors/{id}/
- Update doctor by id - DELETE
/shrmb/doctors/{id}/
- Delete doctor by id
- GET
/shrmb/history/
- Get all history - POST
/shrmb/history/
- Create a new history - GET
/shrmb/history/{id}/
- Get history by id - PUT
/shrmb/history/{id}/
- Update history by id - DELETE
/shrmb/history/{id}/
- Delete history by id
- GET
/shrmb/vacancies/
- Get all vacancies - POST
/shrmb/vacancies/
- Create a new vacancy - GET
/shrmb/vacancies/{id}/
- Get vacancy by id - PUT
/shrmb/vacancies/{id}/
- Update vacancy by id - DELETE
/shrmb/vacancies/{id}/
- Delete vacancy by id
- GET
/shrmb/useful-tips/
- Get all useful tips - POST
/shrmb/useful-tips/
- Create a new useful tip - GET
/shrmb/useful-tips/{id}/
- Get useful tip by id - PUT
/shrmb/useful-tips/{id}/
- Update useful tip by id - DELETE
/shrmb/useful-tips/{id}/
- Delete useful tip by id
This project is licensed under the MIT License - see the LICENSE file for details