Add initial implementations for forms and organization apps with serializers, factories, and admin configurations
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
33
src/core/api_v1_urls.py
Normal file
33
src/core/api_v1_urls.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
API v1 URL configuration.
|
||||
|
||||
Все API эндпоинты версионированы под /api/v1/
|
||||
"""
|
||||
|
||||
from apps.core.views import (
|
||||
BackgroundJobListView,
|
||||
BackgroundJobStatusView,
|
||||
BackgroundJobStreamView,
|
||||
)
|
||||
from django.urls import include, path
|
||||
|
||||
app_name = "api_v1"
|
||||
|
||||
jobs_urlpatterns = [
|
||||
path("", BackgroundJobListView.as_view(), name="job-list"),
|
||||
path("<str:task_id>/stream/", BackgroundJobStreamView.as_view(), name="job-stream"),
|
||||
path("<str:task_id>/", BackgroundJobStatusView.as_view(), name="job-status"),
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
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("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")),
|
||||
]
|
||||
Reference in New Issue
Block a user