2026-02-19 17:55:33 +03:30
|
|
|
from django.contrib import admin
|
|
|
|
|
from django.urls import include, path
|
2026-05-05 21:02:12 +03:30
|
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView
|
2026-02-19 17:55:33 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("admin/", admin.site.urls),
|
2026-05-05 21:02:12 +03:30
|
|
|
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
|
|
|
path("api/docs/swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
|
|
|
|
path("api/docs/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
2026-03-19 22:54:29 +03:30
|
|
|
# --- App APIs ---
|
2026-02-27 19:44:49 +03:30
|
|
|
path("api/rag/", include("rag.urls")),
|
2026-04-25 17:22:41 +03:30
|
|
|
path("api/farm-alerts/", include("farm_alerts.urls")),
|
2026-05-10 02:02:48 +03:30
|
|
|
path("api/location-data/", include("location_data.urls")),
|
2026-04-25 17:22:41 +03:30
|
|
|
path("api/soile/", include("soile.urls")),
|
2026-04-06 23:50:24 +03:30
|
|
|
path("api/farm-data/", include("farm_data.urls")),
|
2026-04-25 17:22:41 +03:30
|
|
|
path("api/weather/", include("weather.urls")),
|
|
|
|
|
path("api/economy/", include("economy.urls")),
|
|
|
|
|
path("api/pest-disease/", include("pest_disease.urls")),
|
2026-03-19 22:54:29 +03:30
|
|
|
path("api/irrigation/", include("irrigation.urls")),
|
2026-03-21 23:50:36 +03:30
|
|
|
path("api/fertilization/", include("fertilization.urls")),
|
2026-04-24 18:34:17 +03:30
|
|
|
path("api/crop-simulation/", include("crop_simulation.urls")),
|
2026-02-19 17:55:33 +03:30
|
|
|
]
|