You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. from django.urls import path
  2. from .views import (
  3. ConfigDetail,
  4. AutomatedLabeling,
  5. LabelMapperTesting,
  6. TemplateListAPI,
  7. TemplateDetailAPI,
  8. ConfigList,
  9. RestAPIRequestTesting,
  10. LabelExtractorTesting,
  11. )
  12. urlpatterns = [
  13. path(route="auto-labeling/templates", view=TemplateListAPI.as_view(), name="auto_labeling_templates"),
  14. path(
  15. route="auto-labeling/templates/<str:option_name>",
  16. view=TemplateDetailAPI.as_view(),
  17. name="auto_labeling_template",
  18. ),
  19. path(route="auto-labeling/configs", view=ConfigList.as_view(), name="auto_labeling_configs"),
  20. path(route="auto-labeling/configs/<int:config_id>", view=ConfigDetail.as_view(), name="auto_labeling_config"),
  21. path(
  22. route="auto-labeling/request-testing",
  23. view=RestAPIRequestTesting.as_view(),
  24. name="auto_labeling_parameter_testing",
  25. ),
  26. path(
  27. route="auto-labeling/label-extractor-testing",
  28. view=LabelExtractorTesting.as_view(),
  29. name="auto_labeling_template_test",
  30. ),
  31. path(
  32. route="auto-labeling/label-mapper-testing", view=LabelMapperTesting.as_view(), name="auto_labeling_mapping_test"
  33. ),
  34. path(route="auto-labeling", view=AutomatedLabeling.as_view(), name="auto_labeling"),
  35. ]