3 回答
TA贡献1786条经验 获得超11个赞
注意力!不要忘记添加 “transformers”:[“response-template”]
"response": {
...
"jsonBody": { "url": "http://localhost:{{port.request}}" },
"transformers": ["response-template"]
...
}
TA贡献1799条经验 获得超6个赞
要解决这个问题,谢谢@Tom的建议是:
{
"priority": 1,
"request": {
"method": "GET",
"url": "/api/public/v3/tasks/taskid123"
},
"response": {
"status": 200,
"jsonBody": {
"info": {
"result_callbacks": [{
"url": "http://localhost:{{request.requestLine.port}}/download/zip/result"
}]
}
},
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"transformers": [
"response-template"
]
}
}
添加回答
举报