from django.urls import path from .views import ( BoundingBoxDetailAPI, BoundingBoxListAPI, CategoryDetailAPI, CategoryListAPI, RelationDetail, RelationList, SegmentationDetailAPI, SegmentationListAPI, SpanDetailAPI, SpanListAPI, TextLabelDetailAPI, TextLabelListAPI, ) urlpatterns = [ path(route="examples//relations", view=RelationList.as_view(), name="relation_list"), path( route="examples//relations/", view=RelationDetail.as_view(), name="relation_detail", ), path(route="examples//categories", view=CategoryListAPI.as_view(), name="category_list"), path( route="examples//categories/", view=CategoryDetailAPI.as_view(), name="category_detail", ), path(route="examples//spans", view=SpanListAPI.as_view(), name="span_list"), path(route="examples//spans/", view=SpanDetailAPI.as_view(), name="span_detail"), path(route="examples//texts", view=TextLabelListAPI.as_view(), name="text_list"), path( route="examples//texts/", view=TextLabelDetailAPI.as_view(), name="text_detail", ), path(route="examples//bboxes", view=BoundingBoxListAPI.as_view(), name="bbox_list"), path( route="examples//bboxes/", view=BoundingBoxDetailAPI.as_view(), name="bbox_detail", ), path(route="examples//segments", view=SegmentationListAPI.as_view(), name="segmentation_list"), path( route="examples//segments/", view=SegmentationDetailAPI.as_view(), name="segmentation_detail", ), ]