2026-02-19 17:55:33 +03:30
|
|
|
from django.contrib import admin
|
|
|
|
|
from django.urls import include, path
|
2026-03-19 22:54:29 +03:30
|
|
|
from drf_spectacular.views import (
|
|
|
|
|
SpectacularAPIView,
|
|
|
|
|
SpectacularRedocView,
|
|
|
|
|
SpectacularSwaggerView,
|
|
|
|
|
)
|
2026-02-19 17:55:33 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("admin/", admin.site.urls),
|
2026-03-19 22:54:29 +03:30
|
|
|
# --- OpenAPI / Swagger ---
|
|
|
|
|
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
|
|
|
path("api/docs/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
|
|
|
|
path("api/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
|
|
|
|
# --- App APIs ---
|
2026-02-27 19:44:49 +03:30
|
|
|
path("api/rag/", include("rag.urls")),
|
2026-03-22 01:09:09 +03:30
|
|
|
path("api/dashboard-data/", include("dashboard_data.urls")),
|
2026-03-19 22:54:29 +03:30
|
|
|
path("api/soil-data/", include("location_data.urls")),
|
2026-04-06 23:50:24 +03:30
|
|
|
path("api/farm-data/", include("farm_data.urls")),
|
2026-03-19 22:54:29 +03:30
|
|
|
path("api/plants/", include("plant.urls")),
|
|
|
|
|
path("api/irrigation/", include("irrigation.urls")),
|
2026-03-21 23:50:36 +03:30
|
|
|
path("api/fertilization/", include("fertilization.urls")),
|
2026-02-19 17:55:33 +03:30
|
|
|
]
|