2017-09-11 40 views
0

使用郵遞員模擬服務器時出現問題。它不響應具有路由參數的請求。例如,我的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." 
} 

}

任何機構能幫助我嗎?

回答

1

您可以編輯保存的例子是PUT : {{server_url}}/order/1

然後 PUT {{mock_server}}/order/1PUT {{mock_server}}/order/5PUT {{mock_server}}/order/<any number>應該工作。