我正在尝试使用 RESTHear api 更新 MongoDB 文档中的一个键,但该值没有更新,但是,我得到了 200 OK。
我尝试了 PATCH 和 PUT 。以下是我尝试过的 URI。
http PUT "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
http PATCH "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
两次我都得到 200 OK 响应,但值没有更新。
难道我做错了什么。我找不到任何例子。
我正在使用 Restheart v 2.0.0 Beta。