You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
2.6 KiB

4 years ago
@type = content-type: application/json;charset=utf-8
4 years ago
@token = eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDI0MTQ2NjEsInN1YiI6IjE0ODE4MzE1NDk5NDczNTEwNDAiLCJhdXRoSWQiOiIwIiwiZXhwIjoxNjQyNDIxODYxfQ.t-r0v0X2Xi_ZXv616Kavy7SCaF2Q-cqdrZNkLnVAXcY
4 years ago
### login
# @name login
4 years ago
# POST http://localhost:7290/users/signin
POST http://101.201.226.163/gateway/ptostall/users/signin
4 years ago
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
deviceId: 66666
{
"client": 0,
"type": 1,
"data": {
"identifier": "15335153627",
"credential": "1111"
}
}
4 years ago
1642674044832
1642674044644
4 years ago
4 years ago
###创建业务信息
4 years ago
POST http://localhost:7300/business/save
{{type}}
deviceId: 66666
{
"param":{
4 years ago
"name": "123777",
"description":"",
"url":"",
"startUsing":1,
"pub":0
4 years ago
}
}
### 查看业务列表
POST http://localhost:7300/business/query
{{type}}
deviceId: 66666
{
"param":{
4 years ago
"name":"",
4 years ago
"depth":0,
"pageNum":1,
4 years ago
"pageSize":15
4 years ago
}
}
### 添加插件
POST http://localhost:7300/plugin/save
{{type}}
deviceId: 66666
{
"param":{
4 years ago
"name": "添加插件8",
4 years ago
"versions": "v1.0",
"intro":"333",
"description":"详细介绍",
"preview":"预览图地址",
"carousel":[
"轮播图1",
"轮播图2",
"轮播图3",
"轮播图4"
],
"html":"aaa",
"css":"bbb",
"js":"ccc",
"config":"ddd",
"publish":1
}
}
### 查看插件列表
4 years ago
POST http://101.201.226.163/gateway/opt/plugin/query
# POST http://localhost:7300/plugin/query
{{type}}
deviceId: 66666
{
"param":{
}
}
### 修改插件
POST http://localhost:7300/plugin/update
{{type}}
deviceId: 66666
{
"param":{
"id":"1483390509519212544",
"name":"66666",
"versions":"49779979",
"intro":"嘿嘿嘿",
"preview":"wwwwa",
"carousel":[
"asdasd",
"asdasd",
"werter"
]
}
}
### 关联业务和插件
POST http://localhost:7300/business/relevance
{{type}}
deviceId: 66666
{
"param":{
"pluginId":"1483357804496687104",
"businessId":"4"
}
}
###查询业务下关联的插件
# POST http://localhost:7300/business/queryPlugin
POST http://101.201.226.163/gateway/opt/business/queryPlugin
{{type}}
deviceId: 66666
{
"param":{
"businessId":"1484436309124845568",
"pageNum":"1",
"pageSize":"10"
}
}
###修改业务下的插件配置信息
POST http://localhost:7300/business/updateConfig
4 years ago
{{type}}
deviceId: 66666
{
"param":{
4 years ago
"businessPluginId":"1483391162832392192",
"config":"99999999999"
4 years ago
}
}