from django.urls import path

from .views import FarmDetailView, FarmDataUpsertView, PlantCatalogSyncView, SensorParameterCreateView

urlpatterns = [
    path(
        "<uuid:farm_uuid>/detail/",
        FarmDetailView.as_view(),
        name="farm-detail",
    ),
    path(
        "",
        FarmDataUpsertView.as_view(),
        name="farm-data-upsert",
    ),
    path(
        "parameters/",
        SensorParameterCreateView.as_view(),
        name="farm-parameter-create",
    ),
    path(
        "plants/sync/",
        PlantCatalogSyncView.as_view(),
        name="farm-data-plant-sync",
    ),
]
