from django.contrib import admin
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView

urlpatterns = [
    path("admin/", admin.site.urls),
    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"),
    # --- App APIs ---
    path("api/rag/", include("rag.urls")),
    path("api/farm-alerts/", include("farm_alerts.urls")),
    path("api/location-data/", include("location_data.urls")),
    path("api/soile/", include("soile.urls")),
    path("api/farm-data/", include("farm_data.urls")),
    path("api/weather/", include("weather.urls")),
    path("api/economy/", include("economy.urls")),
    path("api/pest-disease/", include("pest_disease.urls")),
    path("api/irrigation/", include("irrigation.urls")),
    path("api/fertilization/", include("fertilization.urls")),
    path("api/crop-simulation/", include("crop_simulation.urls")),
]
