@tall = https://www.tall.wiki/gateway/tall/v1.0 @test = https://test.tall.wiki/gateway/tall/v1.0 @localhost = http://localhost:7030 @type = content-type: application/json;charset=utf-8 ### 登录 # @name login POST {{test}}/users/signin # POST http://localhost:7030/v1.0/users/signin {{type}} { "client": 1, "type": 3, "data": { "identifier": "zy11", "credential": "123456" } } #根据任务id查询插件列表(该任务已添加的) ###F # POST http://localhost:7030/v1.0/plugins/findPluginOfAdded POST {{test}}/plugins/findPluginOfAdded {{type}} Authorization: Bearer {{login.response.body.$.data.token}} { "param": { "taskId":"1365119892432490496", "roleId":"1365119891782373376" } } #根据任务id查询插件列表(该任务未添加的的) ###F # POST http://localhost:7030/v1.0/plugins/findPluginOfNoAdded POST {{test}}/plugins/findPluginOfNoAdded {{type}} Authorization: Bearer {{login.response.body.$.data.token}} { "param": { "taskId":"1", "roleId":"1" } } #给插件总表添加插件 ###F # POST http://localhost:7030/v1.0/plugins/save POST {{test}}/plugins/save {{type}} Authorization: Bearer {{login.response.body.$.data.token}} { "param": { "name":"show_score", "description":"展示分数" } } #给任务添加插件 ###F # POST http://localhost:7030/v1.0/plugins/addPluginForTask POST {{test}}/plugins/addPluginForTask {{type}} Authorization: Bearer {{login.response.body.$.data.token}} { "param": { "pluginId":"1", "taskId":"1365120545775030272", "roleId":"1365119891782373376" } } #给任务删除插件 ###F # POST http://localhost:7030/v1.0/plugins/deletePluginForTask POST {{test}}/plugins/deletePluginForTask {{type}} Authorization: Bearer {{login.response.body.$.data.token}} { "param": { "taskId":"1365120545775030272", "roleId":"1365119891782373376", "pluginId":"1" } }