mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
105 lines
4.8 KiB
105 lines
4.8 KiB
from django.urls import path
|
|
from rest_framework.authtoken.views import obtain_auth_token
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
|
|
|
from .views import Me, Features, Users, Health
|
|
from .views import ProjectList, ProjectDetail
|
|
from .views import LabelList, LabelDetail, ApproveLabelsAPI, LabelUploadAPI
|
|
from .views import DocumentList, DocumentDetail
|
|
from .views import AnnotationList, AnnotationDetail
|
|
from .views import CommentList, CommentDetail
|
|
from .views import TextUploadAPI, TextDownloadAPI, CloudUploadAPI
|
|
from .views import StatisticsAPI
|
|
from .views import RoleMappingList, RoleMappingDetail, Roles
|
|
from .views import AutoLabelingTemplateListAPI, AutoLabelingTemplateDetailAPI
|
|
from .views import AutoLabelingConfigList, AutoLabelingConfigDetail, AutoLabelingConfigTest, AutoLabelingAnnotation
|
|
from .views import AutoLabelingConfigParameterTest, AutoLabelingTemplateTest, AutoLabelingMappingTest
|
|
|
|
urlpatterns = [
|
|
path('health', Health.as_view(), name='health'),
|
|
path('auth-token', obtain_auth_token),
|
|
path('me', Me.as_view(), name='me'),
|
|
path('features', Features.as_view(), name='features'),
|
|
path('cloud-upload', CloudUploadAPI.as_view(), name='cloud_uploader'),
|
|
path('projects', ProjectList.as_view(), name='project_list'),
|
|
path('users', Users.as_view(), name='user_list'),
|
|
path('roles', Roles.as_view(), name='roles'),
|
|
path('projects/<int:project_id>', ProjectDetail.as_view(), name='project_detail'),
|
|
path('projects/<int:project_id>/statistics',
|
|
StatisticsAPI.as_view(), name='statistics'),
|
|
path('projects/<int:project_id>/labels',
|
|
LabelList.as_view(), name='label_list'),
|
|
path('projects/<int:project_id>/label-upload',
|
|
LabelUploadAPI.as_view(), name='label_upload'),
|
|
path('projects/<int:project_id>/labels/<int:label_id>',
|
|
LabelDetail.as_view(), name='label_detail'),
|
|
path('projects/<int:project_id>/docs',
|
|
DocumentList.as_view(), name='doc_list'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>',
|
|
DocumentDetail.as_view(), name='doc_detail'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>/approve-labels',
|
|
ApproveLabelsAPI.as_view(), name='approve_labels'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>/annotations',
|
|
AnnotationList.as_view(), name='annotation_list'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>/annotations/<int:annotation_id>',
|
|
AnnotationDetail.as_view(), name='annotation_detail'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>/comments',
|
|
CommentList.as_view(), name='comment_list'),
|
|
path('projects/<int:project_id>/docs/<int:doc_id>/comments/<int:comment_id>',
|
|
CommentDetail.as_view(), name='comment_detail'),
|
|
path('projects/<int:project_id>/docs/upload',
|
|
TextUploadAPI.as_view(), name='doc_uploader'),
|
|
path('projects/<int:project_id>/docs/download',
|
|
TextDownloadAPI.as_view(), name='doc_downloader'),
|
|
path('projects/<int:project_id>/roles',
|
|
RoleMappingList.as_view(), name='rolemapping_list'),
|
|
path('projects/<int:project_id>/roles/<int:rolemapping_id>',
|
|
RoleMappingDetail.as_view(), name='rolemapping_detail'),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-templates',
|
|
view=AutoLabelingTemplateListAPI.as_view(),
|
|
name='auto_labeling_templates'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-templates/<str:option_name>',
|
|
view=AutoLabelingTemplateDetailAPI.as_view(),
|
|
name='auto_labeling_template'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-configs',
|
|
view=AutoLabelingConfigList.as_view(),
|
|
name='auto_labeling_configs'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-configs/<int:config_id>',
|
|
view=AutoLabelingConfigDetail.as_view(),
|
|
name='auto_labeling_config'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-config-testing',
|
|
view=AutoLabelingConfigTest.as_view(),
|
|
name='auto_labeling_config_test'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/docs/<int:doc_id>/auto-labeling',
|
|
view=AutoLabelingAnnotation.as_view(),
|
|
name='auto_labeling_annotation'
|
|
),
|
|
path(
|
|
route='auto-labeling-parameter-testing',
|
|
view=AutoLabelingConfigParameterTest.as_view(),
|
|
name='auto_labeling_parameter_testing'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-template-testing',
|
|
view=AutoLabelingTemplateTest.as_view(),
|
|
name='auto_labeling_template_test'
|
|
),
|
|
path(
|
|
route='projects/<int:project_id>/auto-labeling-mapping-testing',
|
|
view=AutoLabelingMappingTest.as_view(),
|
|
name='auto_labeling_mapping_test'
|
|
)
|
|
]
|
|
|
|
# urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'xml'])
|