4

使用邮递员模拟服务器时出现问题。它不响应具有路由参数的请求。例如,我的 uri 如下所示:

PUT : {{server_url}}/order/{id}

但是当我以这种方式调用模拟服务器时:

{{mock_server}}/order/{id}

或者

{{mock_server}}/order/1 or any other examples 

模拟服务器响应是:

{
"error": {
    "name": "mockRequestNotFoundError",
    "message": "We were unable to find any matching requests for this method type and the mock path, '/fa/order/', in your collection."
}

}

任何机构可以帮助我吗?

4

1 回答 1

4

您可以将保存的示例编辑为PUT : {{server_url}}/order/1

然后 PUT {{mock_server}}/order/1PUT {{mock_server}}/order/5PUT {{mock_server}}/order/<any number>应该工作。

于 2017-09-13T09:16:49.467 回答