diff --git a/pharmanathi.com/config/api_router.py b/pharmanathi.com/config/api_router.py index a16008ec..9c658c32 100755 --- a/pharmanathi.com/config/api_router.py +++ b/pharmanathi.com/config/api_router.py @@ -1,8 +1,10 @@ from django.conf import settings from django.urls import path -from rest_framework.routers import DefaultRouter, SimpleRouter - -from pharmanathi_backend.appointments.views import AppointmentTypeViewSet, AppointmentViewSet, TimeSlotViewSet +from pharmanathi_backend.appointments.views import ( + AppointmentTypeViewSet, + AppointmentViewSet, + TimeSlotViewSet, +) from pharmanathi_backend.users.api.views import ( AddressModelViewset, GoogleLoginView, @@ -11,6 +13,7 @@ SpecialityModelViewset, UserViewSet, ) +from rest_framework.routers import DefaultRouter, SimpleRouter if settings.DEBUG: router = DefaultRouter() @@ -24,7 +27,7 @@ router.register("practice-locations", PracticeLocationModelViewset, "practicelocations") router.register("appointment-types", AppointmentTypeViewSet, "appointment-types") router.register("timeslots", TimeSlotViewSet, "timeslots") -router.register("appointments", AppointmentViewSet, "timeslots") +router.register("appointments", AppointmentViewSet, "appointments") app_name = "api" diff --git a/pharmanathi.com/requirements/base.txt b/pharmanathi.com/requirements/base.txt index 5f16c444..f9cced0b 100644 --- a/pharmanathi.com/requirements/base.txt +++ b/pharmanathi.com/requirements/base.txt @@ -14,13 +14,14 @@ uvicorn[standard]==0.30.1 # https://github.com/encode/uvicorn django==5.0.3 # pyup: < 5.0 # https://www.djangoproject.com/ django-environ==0.11.2 # https://github.com/joke2k/django-environ django-model-utils==4.5.1 # https://github.com/jazzband/django-model-utils -django-allauth==0.57.0 # https://github.com/pennersr/django-allauth -dj-rest-auth[with_social] +django-allauth==0.61.1 # https://github.com/pennersr/django-allauth +dj-rest-auth[with_social]==6.0.0 # https://github.com/iMerica/dj-rest-auth +pyjwt[crypto]==2.8.0 # https://github.com/jpadilla/pyjwt django-crispy-forms==2.0 # https://github.com/django-crispy-forms/django-crispy-forms crispy-bootstrap5==2024.2 # https://github.com/django-crispy-forms/crispy-bootstrap5 django-redis==5.4.0 # https://github.com/jazzband/django-redis # Django REST Framework -djangorestframework==3.14.0 # https://github.com/encode/django-rest-framework +djangorestframework==3.15.1 # https://github.com/encode/django-rest-framework django-cors-headers==4.3.1 # https://github.com/adamchainz/django-cors-headers # DRF-spectacular for api documentation drf-spectacular==0.27.2 # https://github.com/tfranzel/drf-spectacular