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.
39 lines
1.8 KiB
39 lines
1.8 KiB
from django.urls import path
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
|
|
|
from .api import Me, Features
|
|
from .api import ProjectList, ProjectDetail
|
|
from .api import LabelList, LabelDetail
|
|
from .api import DocumentList, DocumentDetail
|
|
from .api import AnnotationList, AnnotationDetail
|
|
from .api import TextUploadAPI, TextDownloadAPI, CloudUploadAPI
|
|
from .api import StatisticsAPI
|
|
|
|
|
|
urlpatterns = [
|
|
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('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>/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>/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/upload',
|
|
TextUploadAPI.as_view(), name='doc_uploader'),
|
|
path('projects/<int:project_id>/docs/download',
|
|
TextDownloadAPI.as_view(), name='doc_downloader')
|
|
]
|
|
|
|
urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'xml'])
|