mirror of https://github.com/doccano/doccano.git
Hironsan
5 years ago
3 changed files with 29 additions and 28 deletions
Split View
Diff Options
@ -0,0 +1,27 @@ |
|||
from django.urls import path |
|||
|
|||
from .api import ProjectList, ProjectDetail |
|||
from .api import LabelList, LabelDetail |
|||
from .api import DocumentList, DocumentDetail |
|||
from .api import EntityList, EntityDetail |
|||
from .api import StatisticsAPI |
|||
|
|||
|
|||
urlpatterns = [ |
|||
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>/entities', |
|||
EntityList.as_view(), name='entity_list'), |
|||
path('projects/<int:project_id>/docs/<int:doc_id>/entities/<int:entity_id>', |
|||
EntityDetail.as_view(), name='entity_detail'), |
|||
] |
Write
Preview
Loading…
Cancel
Save