diff --git a/tall/project/project.http b/tall/project/project.http index e12ce1e..6f49880 100644 --- a/tall/project/project.http +++ b/tall/project/project.http @@ -14,7 +14,30 @@ POST {{test}}/users/signin "type": 3, "data": { "identifier": "zy11", - "credential": "123465" + "credential": "123456" } } + +### 测试-调用文件系统获取文件信息 +GET {{localhost}}/debug/htt +{{type}} + +[ + 1321760076465311744 +] + + + +### 导入WBS +POST {{localhost}}/projects/wbs +Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW + +title +------WebKitFormBoundary7MA4YWxkTrZu0gW +Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx" +Content-Type: xlsx + +< C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx +------WebKitFormBoundary7MA4YWxkTrZu0gW-- +### diff --git a/文件管理/file/file.http b/文件管理/file/file.http index e69de29..aa7c22e 100644 --- a/文件管理/file/file.http +++ b/文件管理/file/file.http @@ -0,0 +1,40 @@ +@localhost = http://localhost:8001 +@testTall = https://test.tall.wiki/gateway/tall/v1.0 +@localhostTall = http://localhost:7030/v1.0 +@testFile = https://test.tall.wiki/filedeal +@type = content-type: application/json;charset=utf-8 +@token = Authorization: Bearer {{login.response.body.$.data.token}} + + +### 登录 +# @name login +POST {{localhostTall}}/users/signin +{{type}} + +{ + "client": 1, + "type": 3, + "data": { + "identifier": "zy11", + "credential": "123456" + } +} + +### debug +GET {{localhostTall}}/debug/htt +# GET {{testFile}}/debug/htt +{{type}} + +[ + 1321760076465311744 +] + + +### 根据id查询文件信息 +POST {{testFile}}/file/query +{{type}} + +[ + 1321760076465311744 +] + \ No newline at end of file