From 9947df004fdd94ece0db5aafa048fb9a61cd1a03 Mon Sep 17 00:00:00 2001 From: xgdyp Date: Fri, 2 Jul 2021 00:56:47 +0800 Subject: [PATCH] =?UTF-8?q?7.1=E6=89=B9=E9=87=8F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E3=80=81=E5=AF=BC=E5=87=BA=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=9A=84=E5=90=8E=E7=AB=AF=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/app/api/v1/anno.py | 2 +- be/app/api/v1/files.py | 1 + be/app/api/v1/index.py | 1 + be/app/config/setting.py | 1 + doc/api文档.md | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) 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格式的数据集标注结果) |