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.

48 lines
1.4 KiB

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