2026-02-19 01:19:22 +03:30
|
|
|
from django.contrib import admin
|
|
|
|
|
from django.urls import include, path
|
2026-03-24 20:10:48 +03:30
|
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
|
2026-02-19 01:19:22 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("admin/", admin.site.urls),
|
2026-03-24 20:10:48 +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-02-19 01:19:22 +03:30
|
|
|
path("api/auth/", include("auth.urls")),
|
|
|
|
|
path("api/account/", include("account.urls")),
|
2026-04-02 23:25:39 +03:30
|
|
|
path("api/farm-hub/", include("farm_hub.urls")),
|
2026-04-03 23:51:00 +03:30
|
|
|
path("api/access-control/", include("access_control.urls")),
|
2026-05-05 00:56:05 +03:30
|
|
|
path("api/sensor-catalog/", include("device_hub.sensor_catalog_urls")),
|
2026-02-19 16:58:41 +03:30
|
|
|
path("api/farm-dashboard-config/", include("dashboard.urls_config")),
|
|
|
|
|
path("api/farm-dashboard/", include("dashboard.urls")),
|
2026-04-11 03:54:15 +03:30
|
|
|
path("api/crop-health/", include("crop_health.urls")),
|
|
|
|
|
path("api/soil/", include("soil.urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
|
2026-02-25 12:21:53 +03:30
|
|
|
path("api/crop-zoning/", include("crop_zoning.urls")),
|
2026-04-30 02:10:27 +03:30
|
|
|
# path("api/yield-harvest/", include("yield_harvest.urls")),
|
|
|
|
|
path("api/yield-harvest/", include("yield_harvest.crop_simulation_urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
|
2026-02-25 12:21:53 +03:30
|
|
|
path("api/pest-detection/", include("pest_detection.urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
path("api/pest-disease/", include("pest_detection.pest_disease_urls")),
|
2026-05-05 00:56:05 +03:30
|
|
|
path("api/sensor-7-in-1/", include("device_hub.sensor_7_in_1_urls")),
|
|
|
|
|
path("api/sensors/", include("device_hub.comparison_urls")),
|
2026-05-02 06:16:36 +03:30
|
|
|
path("api/irrigation/", include("irrigation.urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
|
|
|
|
|
path("api/weather/", include("water.weather_urls")),
|
2026-04-11 03:54:15 +03:30
|
|
|
path("api/water/", include("water.urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
path("api/economy/", include("economic_overview.urls")),
|
|
|
|
|
|
2026-05-02 06:16:36 +03:30
|
|
|
path("api/fertilization/", include("fertilization.urls")),
|
2026-02-25 12:21:53 +03:30
|
|
|
path("api/farm-ai-assistant/", include("farm_ai_assistant.urls")),
|
2026-04-03 23:51:00 +03:30
|
|
|
path("api/notifications/", include("notifications.urls")),
|
2026-04-10 16:12:51 +03:30
|
|
|
path("api/farm-alerts/", include("farm_alerts.urls")),
|
2026-04-28 04:11:09 +03:30
|
|
|
path("api/plants/", include("plants.urls")),
|
2026-05-02 04:49:29 +03:30
|
|
|
path("api/events/", include("farmer_calendar.urls")),
|
|
|
|
|
path("api/farmer-todos/", include("farmer_todos.urls")),
|
2026-04-27 00:40:59 +03:30
|
|
|
|
2026-05-05 00:56:05 +03:30
|
|
|
path("api/sensor-external-api/", include("device_hub.sensor_external_api_urls")),
|
2026-02-19 01:19:22 +03:30
|
|
|
]
|