from django.urls import path

from .api_views import (
    ClubHistoryView,
    HallOfFameInductView,
    HallOfFameView,
    OfficialMatchStatisticsView,
    OfficialRecordsView,
    PlayerHistoryView,
    ProjectionIntegrityView,
    SeasonArchiveCollectionView,
    SeasonArchiveView,
)

urlpatterns = [
    path("seasons/<int:season_id>/", SeasonArchiveView.as_view(), name="official-history-season"),
    path("seasons/<int:season_id>/<str:collection>/", SeasonArchiveCollectionView.as_view(), name="official-history-season-collection"),
    path("matches/<uuid:match_id>/statistics/", OfficialMatchStatisticsView.as_view(), name="official-history-match-statistics"),
    path("clubs/<uuid:club_id>/", ClubHistoryView.as_view(), name="official-history-club"),
    path("players/<uuid:player_id>/", PlayerHistoryView.as_view(), name="official-history-player"),
    path("records/", OfficialRecordsView.as_view(), name="official-history-records"),
    path("hall-of-fame/", HallOfFameView.as_view(), name="official-history-hall-of-fame"),
    path("hall-of-fame/induct/", HallOfFameInductView.as_view(), name="official-history-hall-of-fame-induct"),
    path("projections/<uuid:projection_id>/integrity/", ProjectionIntegrityView.as_view(), name="official-history-integrity"),
]
