from django.urls import path from apps.algorithms.views.algorithm import ( add_algorithm, delete_algorithm, get_algorithm_engines, get_algorithm_list, get_algorithm_tree, read_algorithm, search_algorithm, update_algorithm, ) from apps.algorithms.views.algorithm_calllog import ( create_algorithm_call_log, delete_algorithm_call_log, read_algorithm_call_log, search_algorithm_call_logs, ) from apps.algorithms.views.algorithm_class import ( create_algorithm_class, delete_algorithm_class, read_algorithm_class, search_algorithm_class, update_algorithm_class, ) from apps.algorithms.views.algorithm_models import ( algorithm_model_predict, convert_algorithm_model_onnx, delete_algorithm_model, delete_predict_default_image, download_published_onnx_model, export_algorithm_model, get_algorithm_default_images, issue_algorithm_model, publish_model_to_terminals, read_algorithm_model, search_algorithm_model, set_algorithm_default_model, update_algorithm_model, upload_algorithm_modelfile, upload_predict_default_images, ) from apps.algorithms.views.algorithm_output import ( create_algorithm_output, delete_algorithm_output, read_algorithm_output, search_algorithm_output, update_algorithm_output, ) from apps.algorithms.views.algorithm_params import ( create_algorithm_params, delete_algorithm_params, read_algorithm_params, search_algorithm_params, update_algorithm_params, ) from apps.annotation.views.annotate_team import ( add_team_members, create_annotate_team, delete_annotate_team, delete_team_members, get_team_members, read_annotate_team, search_annotate_team, update_annotate_team, update_team_member, ) from apps.datasets.views.dataset import ( create_dataset, delete_dataset, delete_dataset_updatefile, generate_dataset_images, get_dataset_list, import_dataset_from_temp_file, read_dataset, search_datasets, update_dataset, upload_dataset_file, ) from apps.datasets.views.dataset_sample import ( delete_duplicate_samples, download_dataset_sample, delete_invalid_samples, preview_dataset_sample, read_dataset_sample, search_dataset_samples, update_dataset_sample, ) from apps.datasets.views.annotate_task import ( create_annotate_task, delete_annotate_task, get_mytask_annotate_list, get_mytask_audit_list, read_annotate_task, search_annotate_tasks, start_auto_annotate_task, update_annotate_task, ) from apps.datasets.views.annotate_task_sample import ( annotate_task_sample, audit_task_samples, delete_task_samples, merge_sample_content, query_person_tasks, read_task_sample, search_task_samples, set_person_task, submit_task_samples, ) from apps.datasets.views.temp_file import ( delete_temp_file, download_temp_file, preview_temp_file, read_temp_file, search_temp_files, update_temp_file, upload_temp_file, ) from apps.cloud_terminal.smart_terminal import ( check_terminal_model_version, create_smart_terminal, delete_smart_terminal, download_terminal_model, publish_terminal_model, search_smart_terminals, terminal_device_auth, update_smart_terminal, update_terminal_heartbeat, update_terminal_model_version, ) from apps.iam.views.organization import ( add_organization, delete_organization, get_organization_list, read_organization, update_organization, ) from apps.iam.views.person import ( add_person, delete_person, get_person_list, update_password, update_person, ) from apps.training.views.algorithm_trainrecords import ( copy_algorithm_train_record, create_algorithm_train_record, delete_algorithm_train_record, detect_image_object, archive_train_model, close_train_model, prepare_algorithm_train_dataset, read_algorithm_train_record, search_algorithm_train_records, start_algorithm_train, train_callback, prepare_callback, update_algorithm_train_record, ) from apps.common.views.minio_storage import ( minio_bucket_create, minio_bucket_delete, minio_bucket_list, minio_file_batch_delete, minio_file_batch_upload, minio_file_copy, minio_file_delete, minio_file_download, minio_file_info, minio_file_list, minio_file_presign, minio_file_presign_upload, minio_file_preview, minio_file_upload, minio_file_upload_bytes, minio_video_extract_frames, minio_zip_upload_extract, ) urlpatterns = [ path("createAlgorithmClass/", create_algorithm_class, name="create_algorithm_class"), path("queryAlgorithmClass/", search_algorithm_class, name="search_algorithm_class"), path("readAlgorithmClass/", read_algorithm_class, name="read_algorithm_class"), path("updateAlgorithmClass/", update_algorithm_class, name="update_algorithm_class"), path("deleteAlgorithmClass/", delete_algorithm_class, name="delete_algorithm_class"), path("addAlgorithm/", add_algorithm, name="create_algorithm"), path("queryAlgorithm/", search_algorithm, name="search_algorithm"), path("getAlgorithmList/", get_algorithm_list, name="get_algorithm_list"), path("getAlgorithmTree/", get_algorithm_tree, name="get_algorithm_tree"), path("readAlgorithm/", read_algorithm, name="read_algorithm"), path("updateAlgorithm/", update_algorithm, name="update_algorithm"), path("deleteAlgorithm/", delete_algorithm, name="delete_algorithm"), path("getAlgorithmEngines/", get_algorithm_engines, name="get_algorithm_engines"), path("addAlgorithmParam/", create_algorithm_params, name="create_algorithm_params"), path("queryAlgorithmParam/", search_algorithm_params, name="search_algorithm_params"), path("readAlgorithmParam/", read_algorithm_params, name="read_algorithm_params"), path("updateAlgorithmParam/", update_algorithm_params, name="update_algorithm_params"), path("deleteAlgorithmParam/", delete_algorithm_params, name="delete_algorithm_params"), path("addAlgorithmOutput/", create_algorithm_output, name="create_algorithm_output"), path("queryAlgorithmOutput/", search_algorithm_output, name="search_algorithm_output"), path("readAlgorithmOutput/", read_algorithm_output, name="read_algorithm_output"), path("updateAlgorithmOutput/", update_algorithm_output, name="update_algorithm_output"), path("deleteAlgorithmOutput/", delete_algorithm_output, name="delete_algorithm_output"), path("uploadAlgorithmModelFile/", upload_algorithm_modelfile, name="upload_algorithm_modelfile"), path("queryAlgorithmModel/", search_algorithm_model, name="search_algorithm_model"), path("readAlgorithmModel/", read_algorithm_model, name="read_algorithm_model"), path("updateAlgorithmModel/", update_algorithm_model, name="update_algorithm_model"), path("deleteAlgorithmModel/", delete_algorithm_model, name="delete_algorithm_model"), path("setAlgorithmDefaultModel/", set_algorithm_default_model, name="set_algorithm_default_model"), path("issueAlgorithmModel/", issue_algorithm_model, name="issue_algorithm_model"), path("publishModelToTerminals/", publish_model_to_terminals, name="publish_model_to_terminals"), path("convertAlgorithmModelOnnx/", convert_algorithm_model_onnx, name="convert_algorithm_model_onnx"), path("downloadPublishedOnnxModel/", download_published_onnx_model, name="download_published_onnx_model"), path("exportAlgorithmModel/", export_algorithm_model, name="export_algorithm_model"), path("AlgorithmModelPredict/", algorithm_model_predict, name="algorithm_model_predict"), path("getAlgorithmDefaultImages/", get_algorithm_default_images, name="get_algorithm_default_images"), path( "uploadPredictDefaultImages/", upload_predict_default_images, name="upload_predict_default_images", ), path( "deletePredictDefaultImage/", delete_predict_default_image, name="delete_predict_default_image", ), path("createDataset/", create_dataset, name="create_dataset"), path("uploadDatasetFile/", upload_dataset_file, name="upload_dataset_file"), path("importFromTempFile/", import_dataset_from_temp_file, name="import_dataset_from_temp_file"), path("generateDatasetImages/", generate_dataset_images, name="generate_dataset_images"), path("queryDataset/", search_datasets, name="search_datasets"), path("getDatasetList/", get_dataset_list, name="get_dataset_list"), path("readDataset/", read_dataset, name="read_dataset"), path("updateDataset/", update_dataset, name="update_datasets"), path("deleteDataset/", delete_dataset, name="delete_datasets"), path("deleteDatasetUpdatefile/", delete_dataset_updatefile, name="delete_dataset_updatefile"), path("querysamples/", search_dataset_samples, name="search_dataset_samples"), path("readDatasetSample/", read_dataset_sample, name="read_dataset_sample"), path("previewDatasetSample/", preview_dataset_sample, name="preview_dataset_sample"), path("downloadDatasetSample/", download_dataset_sample, name="download_dataset_sample"), path("deleteInvalidSamples/", delete_invalid_samples, name="delete_invalid_samples"), path("deleteDuplicateSamples/", delete_duplicate_samples, name="delete_duplicate_samples"), path("addOrganization/", add_organization, name="add_organization"), path("getOrganizationList/", get_organization_list, name="get_organization_list"), path("readOrganization/", read_organization, name="read_organization"), path("updateOrganization/", update_organization, name="update_organization"), path("deleteOrganization/", delete_organization, name="delete_organization"), path("addPerson/", add_person, name="add_person"), path("getPersonList/", get_person_list, name="get_person_list"), path("updatePerson/", update_person, name="update_person"), path("deletePerson/", delete_person, name="delete_person"), path("updatePassword/", update_password, name="update_password"), path("createAnnotateTeam/", create_annotate_team, name="create_annotate_team"), path("addTeamMembers/", add_team_members, name="add_team_members"), path("searchAnnotateTeam/", search_annotate_team, name="search_annotate_team"), path("readAnnotateTeam/", read_annotate_team, name="read_annotate_team"), path("updateAnnotateTeam/", update_annotate_team, name="update_annotate_team"), path("updateTeamMember/", update_team_member, name="update_team_member"), path("deleteAnnotateTeam/", delete_annotate_team, name="delete_annotate_team"), path("getTeamMembers/", get_team_members, name="get_team_members"), path("deleteTeamMembers/", delete_team_members, name="delete_team_members"), path("startAutoAnnotateTask/", start_auto_annotate_task, name="start_auto_annotate_task"), path("getMytaskAnnotateList/", get_mytask_annotate_list, name="get_mytask_annotate_list"), path("getMytaskAuditList/", get_mytask_audit_list, name="get_mytask_audit_list"), path("setPersonTask/", set_person_task, name="set_person_task"), path("deleteTaskSamples/", delete_task_samples, name="delete_task_samples"), path("queryPersonTasks/", query_person_tasks, name="query_person_Tasks"), path("queryTaskSamples/", search_task_samples, name="search_task_samples"), path("readTaskSample/", read_task_sample, name="read_task_sample"), path("annotateTaskSample/", annotate_task_sample, name="annotate_task_sample"), path("submitTaskSamples/", submit_task_samples, name="submit_task_samples"), path("auditTaskSamples/", audit_task_samples, name="audit_task_samples"), path("mergeSampleContent/", merge_sample_content, name="merge_sample_content"), path("uploadTempFile/", upload_temp_file, name="upload_temp_file"), path("queryTempFiles/", search_temp_files, name="search_temp_files"), path("readTempFile/", read_temp_file, name="read_temp_file"), path("updateTempFile/", update_temp_file, name="update_temp_file"), path("deleteTempFile/", delete_temp_file, name="delete_temp_file"), path("downloadTempFile/", download_temp_file, name="download_temp_file"), path("previewTempFile/", preview_temp_file, name="preview_temp_file"), path("terminal/auth/", terminal_device_auth, name="terminal_device_auth"), path("terminal/create/", create_smart_terminal, name="create_smart_terminal"), path("terminal/update/", update_smart_terminal, name="update_smart_terminal"), path("terminal/publishModel/", publish_terminal_model, name="publish_terminal_model"), path("terminal/list/", search_smart_terminals, name="search_smart_terminals"), path("terminal/heartbeat/", update_terminal_heartbeat, name="update_terminal_heartbeat"), path("terminal/checkVersion/", check_terminal_model_version, name="check_terminal_model_version"), path("terminal/downloadModel/", download_terminal_model, name="download_terminal_model"), path("terminal/updateModelVersion/", update_terminal_model_version, name="update_terminal_model_version"), path("terminal/delete/", delete_smart_terminal, name="delete_smart_terminal"), path("annotateTask/create/", create_annotate_task, name="create_annotate_task"), path("annotateTask/list/", search_annotate_tasks, name="search_annotate_tasks"), path("annotateTask/read/", read_annotate_task, name="read_annotate_task"), path("annotateTask/update/", update_annotate_task, name="update_annotate_task"), path("annotateTask/delete/", delete_annotate_task, name="delete_annotate_task"), path("annotateTask/assignSamples/", set_person_task, name="assign_annotate_task_samples"), path("annotateTask/autoAnnotate/", start_auto_annotate_task, name="auto_annotate_task"), path("annotateTask/submitAudit/", submit_task_samples, name="submit_annotate_task_samples"), path("annotateTask/audit/", audit_task_samples, name="audit_annotate_task_samples"), path("annotateTask/mergeToDataset/", merge_sample_content, name="merge_annotate_task_samples"), path("addAlgorithmTrainRecord/", create_algorithm_train_record, name="create_algorithm_train_record"), path("copyAlgorithmTrainRecord/", copy_algorithm_train_record, name="copy_algorithm_train_record"), path("queryAlgorithmTrainRecords/", search_algorithm_train_records, name="search_algorithm_train_record"), path("readAlgorithmTrainRecord/", read_algorithm_train_record, name="read_algorithm_train_record"), path("updateAlgorithmTrainRecord/", update_algorithm_train_record, name="update_algorithm_train_record"), path("deleteAlgorithmTrainRecord/", delete_algorithm_train_record, name="delete_algorithm_train_record"), path( "prepareAlgorithmTrainDataset/", prepare_algorithm_train_dataset, name="prepare_algorithm_train_dataset", ), path("startAlgorithmTrain/", start_algorithm_train, name="start_algorithm_train"), path("TrainCallBack/", train_callback, name="train_callback"), path("PrepareCallBack/", prepare_callback, name="prepare_callback"), path("detectImageObject/", detect_image_object, name="detect_image_object"), path("archiveTrainModel/", archive_train_model, name="archive_train_model"), path("closeTrain/", close_train_model, name="close_train_model"), # ── MinIO 文件存储接口 ───────────────────────────── path("minio/bucket/create/", minio_bucket_create, name="minio_bucket_create"), path("minio/bucket/list/", minio_bucket_list, name="minio_bucket_list"), path("minio/bucket/delete/", minio_bucket_delete, name="minio_bucket_delete"), path("minio/file/upload/", minio_file_upload, name="minio_file_upload"), path("minio/file/upload-base64/", minio_file_upload_bytes, name="minio_file_upload_base64"), path("minio/files/upload/", minio_file_batch_upload, name="minio_file_batch_upload"), path("minio/file/upload-zip/", minio_zip_upload_extract, name="minio_zip_upload_extract"), path("minio/file/upload-video-frames/", minio_video_extract_frames, name="minio_video_extract_frames"), path("minio/file/download/", minio_file_download, name="minio_file_download"), path("minio/file/presign/", minio_file_presign, name="minio_file_presign"), path("minio/file/presign-upload/", minio_file_presign_upload, name="minio_file_presign_upload"), path("minio/file/preview/", minio_file_preview, name="minio_file_preview"), path("minio/file/info/", minio_file_info, name="minio_file_info"), path("minio/files/", minio_file_list, name="minio_file_list"), path("minio/file/delete/", minio_file_delete, name="minio_file_delete"), path("minio/files/delete/", minio_file_batch_delete, name="minio_file_batch_delete"), path("minio/file/copy/", minio_file_copy, name="minio_file_copy"), ]