<gh_stars>1-10
from django.urls import path
from drf_spectacular.views import SpectacularJSONAPIView, SpectacularSwaggerView

from api import views

urlpatterns = [
    path('user/profile/v2/', views.UserProfileV2View.as_view(), name="api-user-profile-v2"),
    path('user/app-review/', views.UserAppReview.as_view(), name="api-user-app-review"),
    path('user/countries/', views.CountriesView.as_view(), name="api-user-countries"),
    path('user/', views.UserView.as_view(), name="api-user"),

    path('general-recommendations/v2/', views.GeneralRecommendationsView.as_view(), name="api-general-recommendations"),
    path('general-recommendations/read/', views.CreateGeneralRecommendationReadView.as_view(),
         name="api-general-recommendations-read"),

    path('nutrition/products/search/', views.ProductSearchView.as_view(), name="api-products-search"),
    path('nutrition/products/missing/', views.MissingProductCreateView.as_view(), name="api-products-missing-create"),

    path('nutrition/daily-reports/light/', views.DailyIntakesReportsLightView.as_view(),
         name="api-daily-reports"),

    path('nutrition/daily-reports/<str:date>/', views.DailyIntakesReportView.as_view(),
         name="api-daily-report"),

    path('nutrition/intake/', views.IntakeCreateView.as_view(), name="api-intake"),
    path('nutrition/intake/<int:id>/', views.IntakeView.as_view(), name="api-intake"),
    path('nutrition/screen/v2/', views.NutritionScreenV2View.as_view(), name="api-nutrition-screen-v2"),
    path('nutrition/weekly/', views.NutritionWeeklyScreenView.as_view(), name="api-nutrition-weekly-screen"),

    path('health-status/blood-pressure/', views.BloodPressureCreateView.as_view(), name="api-blood-pressure-create"),
    path('health-status/blood-pressure/<int:id>/', views.BloodPressureUpdateView.as_view(),
         name="api-blood-pressure-update"),

    path('health-status/pulse/', views.PulseCreateView.as_view(), name="api-pulse-create"),
    path('health-status/pulse/<int:id>/', views.PulseUpdateView.as_view(), name="api-pulse-update"),

    path('health-status/screen/', views.HealthStatusScreenView.as_view(), name="api-health-status-screen"),
    path('health-status/weekly/', views.HealthStatusWeeklyScreenView.as_view(), name="api-health-status-weekly"),
    path('health-status/<str:date>/', views.DailyHealthStatusByDateView.as_view(), name="api-health-status-by-date"),
    path('health-status/', views.DailyHealthStatusView.as_view(), name="api-health-status"),

    path('peritoneal-dialysis/manual/dialysis/create/', views.CreateManualPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-manual-create"),

    path('peritoneal-dialysis/manual/dialysis/<int:id>/', views.UpdateManualPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-manual-dialysis"),

    path('peritoneal-dialysis/manual/screen/v2/', views.ManualPeritonealDialysisScreenView.as_view(),
         name="api-peritoneal-dialysis-manual-screen"),

    path('peritoneal-dialysis/automatic/dialysis/create/', views.CreateAutomaticPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-automatic-create"),

    path('peritoneal-dialysis/automatic/dialysis/<str:date>/', views.UpdateAutomaticPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-automatic-dialysis"),

    path('peritoneal-dialysis/automatic/screen/', views.AutomaticPeritonealDialysisScreenView.as_view(),
         name="api-peritoneal-dialysis-automatic-screen"),

    path('peritoneal-dialysis/automatic/period/', views.AutomaticPeritonealDialysisPeriodView.as_view(),
         name="api-peritoneal-dialysis-automatic-period"),

    path('schema.json/', SpectacularJSONAPIView.as_view(), name='schema'),
    # Optional UI:
    path('', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
]

from django.urls import path
from drf_spectacular.views import SpectacularJSONAPIView, SpectacularSwaggerView

from api import views

urlpatterns = [
    path('user/profile/v2/', views.UserProfileV2View.as_view(), name="api-user-profile-v2"),
    path('user/app-review/', views.UserAppReview.as_view(), name="api-user-app-review"),
    path('user/countries/', views.CountriesView.as_view(), name="api-user-countries"),
    path('user/', views.UserView.as_view(), name="api-user"),

    path('general-recommendations/v2/', views.GeneralRecommendationsView.as_view(), name="api-general-recommendations"),
    path('general-recommendations/read/', views.CreateGeneralRecommendationReadView.as_view(),
         name="api-general-recommendations-read"),

    path('nutrition/products/search/', views.ProductSearchView.as_view(), name="api-products-search"),
    path('nutrition/products/missing/', views.MissingProductCreateView.as_view(), name="api-products-missing-create"),

    path('nutrition/daily-reports/light/', views.DailyIntakesReportsLightView.as_view(),
         name="api-daily-reports"),

    path('nutrition/daily-reports/<str:date>/', views.DailyIntakesReportView.as_view(),
         name="api-daily-report"),

    path('nutrition/intake/', views.IntakeCreateView.as_view(), name="api-intake"),
    path('nutrition/intake/<int:id>/', views.IntakeView.as_view(), name="api-intake"),
    path('nutrition/screen/v2/', views.NutritionScreenV2View.as_view(), name="api-nutrition-screen-v2"),
    path('nutrition/weekly/', views.NutritionWeeklyScreenView.as_view(), name="api-nutrition-weekly-screen"),

    path('health-status/blood-pressure/', views.BloodPressureCreateView.as_view(), name="api-blood-pressure-create"),
    path('health-status/blood-pressure/<int:id>/', views.BloodPressureUpdateView.as_view(),
         name="api-blood-pressure-update"),

    path('health-status/pulse/', views.PulseCreateView.as_view(), name="api-pulse-create"),
    path('health-status/pulse/<int:id>/', views.PulseUpdateView.as_view(), name="api-pulse-update"),

    path('health-status/screen/', views.HealthStatusScreenView.as_view(), name="api-health-status-screen"),
    path('health-status/weekly/', views.HealthStatusWeeklyScreenView.as_view(), name="api-health-status-weekly"),
    path('health-status/<str:date>/', views.DailyHealthStatusByDateView.as_view(), name="api-health-status-by-date"),
    path('health-status/', views.DailyHealthStatusView.as_view(), name="api-health-status"),

    path('peritoneal-dialysis/manual/dialysis/create/', views.CreateManualPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-manual-create"),

    path('peritoneal-dialysis/manual/dialysis/<int:id>/', views.UpdateManualPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-manual-dialysis"),

    path('peritoneal-dialysis/manual/screen/v2/', views.ManualPeritonealDialysisScreenView.as_view(),
         name="api-peritoneal-dialysis-manual-screen"),

    path('peritoneal-dialysis/automatic/dialysis/create/', views.CreateAutomaticPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-automatic-create"),

    path('peritoneal-dialysis/automatic/dialysis/<str:date>/', views.UpdateAutomaticPeritonealDialysisView.as_view(),
         name="api-peritoneal-dialysis-automatic-dialysis"),

    path('peritoneal-dialysis/automatic/screen/', views.AutomaticPeritonealDialysisScreenView.as_view(),
         name="api-peritoneal-dialysis-automatic-screen"),

    path('peritoneal-dialysis/automatic/period/', views.AutomaticPeritonealDialysisPeriodView.as_view(),
         name="api-peritoneal-dialysis-automatic-period"),

    path('schema.json/', SpectacularJSONAPIView.as_view(), name='schema'),
    # Optional UI:
    path('', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
]
# Optional UI: