from dicom.api.views import ( AddDicomProjectApi, CreateCircleApi, CreateFreeHandApi, CreateLayerApi, CreateRoiApi, CreateRulerApi, DeleteDicomProjectApi, GeneratePatology, ListCreateDicomApi, ListCreateProjectApi, ListUpdateDicomImageNumberApi, RetrieveUpdateDeleteCircleApi, RetrieveUpdateDeleteDicomApi, RetrieveUpdateDeleteFreeHandApi, RetrieveUpdateDeleteLayerApi, RetrieveUpdateDeleteProjectApi, RetrieveUpdateDeleteRoiApi, RetrieveUpdateDeleteRulerApi, SmartFileUploadApi, ) from django.urls import include, path from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from users.api.views import RegisterView urlpatterns = [ path( "auth/", include( [ path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"), path("refresh/", TokenRefreshView.as_view(), name="token_refresh"), path("register/", RegisterView.as_view(), name="user_register"), ] ), ), path( "dicom/", include( [ path("", ListCreateDicomApi.as_view(), name="dicom_list_create"), path("upload", SmartFileUploadApi.as_view(), name="upload_dicom_api"), path( "", RetrieveUpdateDeleteDicomApi.as_view(), name="get_update_delete_dicom", ), path( "/roi", CreateRoiApi.as_view(), name="create_roi", ), path( "/free_hand", CreateFreeHandApi.as_view(), name="create_free_hand", ), path( "/circle", CreateCircleApi.as_view(), name="create_circle", ), path( "/ruler", CreateRulerApi.as_view(), name="create_ruler", ), path( "shapes/", ListUpdateDicomImageNumberApi.as_view(), name="update_dicom_layer", ), ] ), ), path( "shapes/", include( [ path( "roi/", RetrieveUpdateDeleteRoiApi.as_view(), name="get_update_delete_roi", ), path( "free_hand/", RetrieveUpdateDeleteFreeHandApi.as_view(), name="get_update_delete_free_hand", ), path( "circle/", RetrieveUpdateDeleteCircleApi.as_view(), name="get_update_delete_circle", ), path( "ruler/", RetrieveUpdateDeleteRulerApi.as_view(), name="get_update_delete_ruler", ), ] ), ), path( "project/", include( [ path("", ListCreateProjectApi.as_view(), name="list_create_project"), path( "", RetrieveUpdateDeleteProjectApi.as_view(), name="get_update_delete_project", ), path( "/upload", AddDicomProjectApi.as_view(), name="add_dicom_api", ), path( "/", DeleteDicomProjectApi.as_view(), name="delete_dicom_api", ), ] ), ), path( "generate/", include( [ path("patology", GeneratePatology.as_view(), name="generate_patology"), ] ), ), path( "layer//", include( [ path("", CreateLayerApi.as_view(), name="create_layer"), path( "", RetrieveUpdateDeleteLayerApi.as_view(), name="get_update_delete_project", ), ] ), ), ]