from django.urls import path
from api import views

urlpatterns = [
    path("register/device/", views.DeviceRegisterView.as_view(), name="register-device"),
    path("category/<int:device>/", views.CategoryListView.as_view(), name="category-list"),
    path('category/<int:category>/craptitude/<int:device>/', views.CraptitudeListView.as_view(), name='craptitude-list'),
    path("team/", views.TeamListView.as_view(), name="team-list"),

    path("game/session/", views.GameSessionCreateView.as_view(), name="game-session-get-or-create"),
    path("player/<int:session>/", views.PlayerBulkCreateAPIView.as_view(), name="player-create"),
    path("sentence/<int:session>/", views.SentenceBulkCreateAPIView.as_view(), name="sentence-create"),

    path("sentence/shuffle/<int:session>/", views.SentenceShuffleAPIView.as_view(), name="shuffle"),
    path("rating/<int:session>/", views.RatingBulkCreateAPIView.as_view(), name="rating-create"),
    path("rating/score/<int:session>/", views.RatingScoreGetAPIView.as_view(), name="rating-score"),
    path("options/<int:session>/", views.OptionsAPIView.as_view(), name="options"),

    path("plan/<int:device>/", views.PlanListView.as_view(), name="plan-list"),
    path('androidPlanPurchase/', views.AndroidPlanPurchaseView.as_view(), name='android-plan-purchase'),
    path('applePlanPurchase/', views.ApplePlanPurchaseView.as_view(), name='apple-plan-purchase'),
    path('androidPlanRestore/', views.AndroidPlanRestoreView.as_view(), name='android-plan-restore'),
    path('applePlanRestore/', views.ApplePlanRestoreView.as_view(), name='apple-plan-restore'),
    path('getAndroidNotification/', views.AndroidNotificationView.as_view(), name='android-notification'),
    path('getAppleNotification/', views.AppleNotificationView.as_view(), name='apple-notification'),

    path("support/create/", views.SupportCreateView, name="create_support"),

]
