4 changed files with 334 additions and 10 deletions
@ -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 |
||||
|
} |
||||
|
} |
||||
@ -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}} |
||||
Loading…
Reference in new issue