Browse Source

20210406v1.0

master
zy_Java 5 years ago
parent
commit
7b7a3eae1d
  1. 19
      tall/project/project.http
  2. 32
      文件管理/file/file.http

19
tall/project/project.http

@ -1,7 +1,8 @@
@tall = https://www.tall.wiki/gateway/tall/v1.0 @tall = https://www.tall.wiki/gateway/tall/v1.0
@test = https://test.tall.wiki/gateway/tall/v1.0 @test = https://test.tall.wiki/gateway/tall/v1.0
@localhost = http://localhost:7030 @localhost = http://localhost:7030/v1.0
@type = content-type: application/json;charset=utf-8 @type = content-type: application/json;charset=utf-8
@token = Authorization: Bearer {{login.response.body.$.data.token}}
### 登录 ### 登录
# @name login # @name login
@ -29,15 +30,19 @@ GET {{localhost}}/debug/htt
### 导入WBS ### 导入WBS
POST {{localhost}}/projects/wbs POST {{localhost}}/projects/wbs
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title title
------WebKitFormBoundary7MA4YWxkTrZu0gW ------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx" Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx"
Content-Type: xlsx Content-Type: xlsx
< C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx < C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW-- ------WebKitFormBoundary7MA4YWxkTrZu0gW--
### ###
GET {{test}}/projects/1/roles
{{type}}
{{token}}

32
文件管理/file/file.http

@ -2,6 +2,7 @@
@testTall = https://test.tall.wiki/gateway/tall/v1.0 @testTall = https://test.tall.wiki/gateway/tall/v1.0
@localhostTall = http://localhost:7030/v1.0 @localhostTall = http://localhost:7030/v1.0
@testFile = https://test.tall.wiki/filedeal @testFile = https://test.tall.wiki/filedeal
@testFile31 = http://192.168.31.13/filedeal
@type = content-type: application/json;charset=utf-8 @type = content-type: application/json;charset=utf-8
@token = Authorization: Bearer {{login.response.body.$.data.token}} @token = Authorization: Bearer {{login.response.body.$.data.token}}
@ -20,21 +21,32 @@ POST {{localhostTall}}/users/signin
} }
} }
### debug
GET {{localhostTall}}/debug/htt
# GET {{testFile}}/debug/htt
{{type}}
[
1321760076465311744
]
### 根据id查询文件信息 ### 根据id查询文件信息
POST {{testFile}}/file/query POST {{localhost}}/file/query
{{type}} {{type}}
[ [
1321760076465311744 1321760076465311744
] ]
### 批量添加文件
POST {{localhost}}/file/upload/multiple
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="111.png"
Content-Type: png
< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="112.png"
Content-Type: png
< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="114.png"
Content-Type: png
< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Loading…
Cancel
Save