from django.urls import path

from .views import (
    IrrigationMethodDetailView,
    IrrigationMethodListCreateView,
    IrrigationPlanParserView,
    IrrigationRecommendView,
    WaterStressView,
)

urlpatterns = [
    path("", IrrigationMethodListCreateView.as_view(), name="irrigation-list-create"),
    path("<int:pk>/", IrrigationMethodDetailView.as_view(), name="irrigation-detail"),
    path("recommend/", IrrigationRecommendView.as_view(), name="irrigation-recommend"),
    path("plan-from-text/", IrrigationPlanParserView.as_view(), name="irrigation-plan-from-text"),
    path("water-stress/", WaterStressView.as_view(), name="water-stress"),
]
