Browse Source

开放平台

master
zy_Java 4 years ago
parent
commit
8a71c3101a
  1. 150
      defaultWbs.http
  2. 114
      open.http
  3. 66
      ptos.http
  4. 14
      文件管理/file/file.http

150
defaultWbs.http

@ -11,8 +11,8 @@
### login
# @name login
# POST {{loaclhost}}7130/v3.0/users/signin
# POST http://192.168.0.99/gateway{{tall3}}/users/signin
POST {{test}}{{tall3}}/users/signin
POST http://192.168.0.99/gateway{{tall3}}/users/signin
# POST {{test}}{{tall3}}/users/signin
# POST {{www}}{{tall}}/users/signin
{{type}}
@ -22,10 +22,134 @@ POST {{test}}{{tall3}}/users/signin
"credential": "123456",
"identifier": "zy11"
},
"scene": 0,
"type": 3
}
### 查看检查记录
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/queryCheckLog
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"deliverRecordId": "1482592684354052096"
}
}
### 查看交付物提交历史
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/queryRecord
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"deliverId": "1482591554576326656"
}
}
### 检查交付物
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/checkDeliver
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"deliverRecordId": "1482592684354052096",
"projectId": "1468515918408851456",
"type": "2",
"remark": "我后悔了",
"score": "10.2"
}
}
### 提交交付物信息
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/submitDeliver
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1468515918408851456",
"deliverId": "1482591554576326656",
"fileList": [
"asdasd"
],
"checkerList":[
"1468515918962499584",
"1468515919390318592",
"1468515921277755392"
]
}
}
### 查询交付物
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/getDeliver
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"taskId": "1470233153737334784"
}
}
### 添加交付物
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/saveDeliver
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1468515918408851456",
"taskId": "1470233153737334784",
"deliverName":"测试交付物1"
}
}
### 查看成员
# 1468515918408851456 projectId
# 1470233153737334784 subTaskId
POST {{loaclhost}}7210/deliver/queryChecker
# POST {{test}}defaultwbs/deliver/queryDeliverOfTask
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1468515918408851456"
}
}
###
POST {{loaclhost}}7210/file/upload
# POST http://test.tall.wiki/gateway/defaultwbs/salary/import?projectId=1433332016270811136
@ -353,3 +477,23 @@ Authorization: Bearer {{login.response.body.$.data.token}}
"enterpriseParkName":"zz",
"enterpriseParkCode":"ss",
}
### 工厂
GET http://121.36.106.168/gateway/df_diplomatist/debug
{{type}}
### 运维
# GET http://101.201.226.163/gateway/dh_diplomatist/debug
# GET http://101.201.226.163/gateway/dh_ptos/debug
GET http://101.201.226.163/gateway/carbasics/v4.0/debug
{{type}}
### 管理
# GET http://127.0.0.1:7020/ptos/debug
# GET http://127.0.0.1:7020/ptos/project/query
{{type}}
###
GET http://127.0.0.1:7020/ptos//debug
{{type}}

114
open.http

@ -0,0 +1,114 @@
@type = content-type: application/json;charset=utf-8
@token = eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDI0NjkxMjcsInN1YiI6IjE0ODE4MzE1NDk5NDczNTEwNDAiLCJhdXRoSWQiOiIwIiwiZXhwIjoxNjQyNDc2MzI3fQ.FCKtxDM9N3bY7BOR7wCWK_vFmkstliYL5DpCwBx3gT4
### login
# @name login
POST http://localhost:7290/users/signin
# POST http://101.201.226.163/gateway/ptostall/users/signin
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
deviceId: 66666
{
"client": 0,
"type": 1,
"data": {
"identifier": "15335153627",
"credential": "1111"
}
}
### 测试
POST http://localhost:7300/heart/tall
{{type}}
Authorization: Bearer {{token}}
deviceId: 66666
### 关联业务和插件
POST http://localhost:7300/business/save
{{type}}
Authorization: Bearer {{token}}
deviceId: 66666
{
"param":{
"pluginId": ,
"businessId":0
}
}
### 添加业务
POST http://localhost:7300/business/save
{{type}}
deviceId: 66666
{
"param":{
"name": "添加插件1",
"description":0,
"url":1,
"startUsing":5,
"pub":0,
"debug":1
}
}
### 查看业务列表
POST http://localhost:7300/business/query
{{type}}
deviceId: 66666
{
"param":{
"name": "",
"depth":0,
"pageNum":1,
"pageSize":5
}
}
### 添加插件
POST http://localhost:7300/plugin/save
{{type}}
Authorization: Bearer {{token}}
deviceId: 66666
{
"param":{
"name": "添加插件3",
"versions": "v1.0",
"intro":"333",
"description":"详细介绍",
"preview":"预览图地址",
"carousel":[
"轮播图1",
"轮播图2",
"轮播图3",
"轮播图4"
],
"html":"aaa",
"css":"bbb",
"js":"ccc",
"config":"ddd",
"publish":1
}
}
### 查看插件列表
POST http://localhost:7300/plugin/query
{{type}}
Authorization: Bearer {{token}}
deviceId: 66666
{
"param":{
"name": "",
"depth":1,
"pageNum":2,
"pageSize":5
}
}

66
ptos.http

@ -0,0 +1,66 @@
@type = content-type: application/json;charset=utf-8
### login
# @name login
POST http://localhost:7290/users/signin
# POST http://101.201.226.163/gateway/ptostall/users/signin
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
deviceId: 66666
{
"client": 0,
"type": 1,
"data": {
"identifier": "15335153627",
"credential": "1111"
}
}
### login
# POST http://101.201.226.163/gateway/ptostall/project/query
POST http://localhost:7290/project/query
{{type}}
deviceId: 66666
{
"param":{
"startTime": 0,
"endTime": 1
}
}
### 图形验证码
GET http://localhost:7290/users/code
# http://101.201.226.163/gateway/ptostall/users/code
{{type}}
### 手机短信验证码
GET http://localhost:7290/users/smscode?phone=15335153627&verificationCodeId=1482998821449633792&verificationCodeValue=65
# GET http://101.201.226.163/gateway/ptostall/users/smscode?phone=15335153627&verificationCodeId=1481460299517399040&verificationCodeValue=55
{{type}}
### 工厂
GET http://121.36.106.168/gateway/df_diplomatist/debug
{{type}}
### 运维
# GET http://101.201.226.163/gateway/dh_diplomatist/debug
# GET http://101.201.226.163/gateway/dh_ptos/debug
GET http://101.201.226.163/gateway/carbasics/v4.0/debug
{{type}}
### 管理
# GET http://127.0.0.1:7020/ptos/debug
# GET http://127.0.0.1:7020/ptos/project/query
{{type}}
###
GET http://127.0.0.1:7020/ptos//debug
{{type}}

14
文件管理/file/file.http

@ -36,9 +36,6 @@ Authorization: Bearer {{login.response.body.$.data.token}}
### 根据id查询文件信息
POST {{testFile}}/file/query
{{type}}
@ -49,14 +46,17 @@ POST {{testFile}}/file/query
### 批量添加文件
# POST https://www.tall.wiki/filedeal/file/upload/multiple
POST https://101.201.226.21:7180/file/upload/multiple
# POST https://test.tall.wiki/filedeal/file/upload/multiple
# POST http://101.201.226.163:7180/file/upload/multiple
POST http://192.168.0.99:7180/file/upload/multiple
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer {{login.response.body.$.data.token}}
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="111.png"
Content-Type: png
< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d.png
Content-Type: image/png
< C:\Users\dou\Desktop\TALL-数据中心[数据中心]-202214112256.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Loading…
Cancel
Save