2016-04-15 70 views
0

我尝试使用ajax在我的数据库上执行更新,但它不起作用。Strongloop - 使用ajax更新

网址我想:

http://localhost:8880/api/Tracks/update?filter { “ID”: “1”}

我能得到什么:

{ “错误”:{ “名”:“Asse田“, ”status“:500, ”message“:”其中参数必须是对象“, ”actual“:false, ”expected“:true, ”operator“:”“== ” “generatedMessage”:假的,

}}

谢谢!

回答

0

尝试此:

curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" -d "{ 
    //your data here 
}" "http://localhost:aaaa/xx/yy/%7B%22id%22%3A1%7D"