""" API v1 URL configuration. Все API эндпоинты версионированы под /api/v1/ """ from apps.core.report_upload_history import ReportUploadHistoryView from apps.core.report_uploads import ReportUploadDownloadView from apps.core.views import ( BackgroundJobListView, BackgroundJobStatusView, BackgroundJobStreamView, ) from apps.user.sso_views import SsoCallbackView, SsoStartView from django.urls import include, path app_name = "api_v1" jobs_urlpatterns = [ path("", BackgroundJobListView.as_view(), name="job-list"), path("/stream/", BackgroundJobStreamView.as_view(), name="job-stream"), path("/", BackgroundJobStatusView.as_view(), name="job-status"), ] urlpatterns = [ path("auth/sso/", SsoCallbackView.as_view(), name="sso-callback"), path("auth/sso/start/", SsoStartView.as_view(), name="sso-start"), path("analytics/", include("apps.organization.analytics_root_urls")), path("exchange/", include("apps.exchange.urls")), path("dictionaries/", include("apps.organization.dictionary_urls")), path("users/", include("apps.user.urls")), path("jobs/", include((jobs_urlpatterns, "jobs"))), path("organizations/", include("apps.organization.urls")), path("registers/", include("apps.registers.urls")), path("", include("apps.external_data.urls")), path("forms/f1/", include("apps.form_1.urls")), path("forms/f2/", include("apps.form_2.urls")), path("forms/f3/", include("apps.form_3.urls")), path("forms/f4/", include("apps.form_4.urls")), path("forms/f5/", include("apps.form_5.urls")), path("forms/f6/", include("apps.form_6.urls")), path( "forms/uploads/history/", ReportUploadHistoryView.as_view(), name="report-upload-history", ), path( "forms//uploads//download/", ReportUploadDownloadView.as_view(), name="report-upload-download", ), ]