diff --git a/be/app/api/v1/anno.py b/be/app/api/v1/anno.py index 76601d9..86e235b 100644 --- a/be/app/api/v1/anno.py +++ b/be/app/api/v1/anno.py @@ -7,7 +7,7 @@ import json import os import zipfile -from app.libs.tools import read_txt_file, write_json, read_json_file, make_dir +from ...libs.tools import read_txt_file, write_json, read_json_file, make_dir api = RedPrint('anno') diff --git a/be/app/api/v1/files.py b/be/app/api/v1/files.py index b363a95..bb1f232 100644 --- a/be/app/api/v1/files.py +++ b/be/app/api/v1/files.py @@ -9,6 +9,7 @@ import os from ...entities.entities import ReturnInfo, FileInfo from ...libs.tools import read_json_file,read_txt_file,write_json +# api = RedPrint('files') diff --git a/be/app/api/v1/index.py b/be/app/api/v1/index.py index 62041f1..7383d67 100644 --- a/be/app/api/v1/index.py +++ b/be/app/api/v1/index.py @@ -10,6 +10,7 @@ api = RedPrint('index') # 访问首页 http://localhost:9060/v1/index + # @api.route('/index') @api.route('', methods=['GET']) def index(): diff --git a/be/app/config/setting.py b/be/app/config/setting.py index 1b3ee76..85cc790 100644 --- a/be/app/config/setting.py +++ b/be/app/config/setting.py @@ -18,5 +18,6 @@ PROJECT_CONFIG_PATH = PROJECTS + '/' + "{}" + '/config.json' #下载标注结果所在的位置 DOWNLOAD_FILE_LOCATION = 'projects/{}/result.json' + # 标注信息存储路径 ANNO_OUTPUT_PATH = PROJECTS + '/' + '{}' + '/' + 'anno.json' diff --git a/doc/api文档.md b/doc/api文档.md index 99e5e48..251fa49 100644 --- a/doc/api文档.md +++ b/doc/api文档.md @@ -3,5 +3,5 @@ | url | methods | params | return | | -------------------------- | ------- | -------------------------------------------------------- | -------------------------------- | | v1/project/get_zipped_data | POST | projectName:项目名 file:数据集文件(目前只支持.zip格式) | json :errcode表示是否成功导入 | -| v1/files/get_json | GET | projectName:项目名 | file(json格式的数据集标注结果) | +| v1/files/get_json | GET | projectName:项目名 | file(.json格式的数据集标注结果) |