from django.urls import path
from . import views

app_name = 'habitats_and_biotopes'

urlpatterns = [
    path('', views.home, name='home'),
    path('api/site/<str:site_id>/boundary/', views.get_site_boundary, name='site_boundary'),
    path('api/all/site/boundaries/', views.get_all_site_boundaries, name='get_all_site_boundaries'),
    path('api/site/<str:site_id>/biotopes/', views.get_biotopes_for_site, name='get_biotopes_for_site'),
    path('api/all/biotopes/', views.get_all_biotopes, name='get_all_biotopes'),
    path('api/site/<str:site_id>/notes/', views.get_notes_for_site, name='get_notes_for_site'),
    path('api/all/notes/', views.get_all_notes, name='get_all_notes'),
    path('api/indicator-species/<str:f2004_code>/', views.get_indicator_species, name='get_indicator_species'),
    path('api/biotope-code/<str:biotope_code>/', views.get_biotope_code, name='get_biotope_code'),
    # path('api/layer/<str:layer_name>/', views.get_layer_geojson, name='layer_geojson'),
    # path('api/layer/<str:layer_name>/bounds/', views.get_layer_bounds, name='layer_bounds'),
]

