This message was deleted.
# opal
s
This message was deleted.
o
Hi @Ben Wallis, Currently we don't support other methods but we do plan improving that in the future.
b
Ah - I saw this PR and got my hopes up for JSON Patch support 😄 https://github.com/permitio/opal/pull/314/
o
Yes, someone from my team started to work on this, but we still need to test it and solve all the conflicts, if you try it out and it works for you let us know and it will help us adding this to the main codebase
b
I tried passing JSON Patch queries in various formats but it only seemed to put the patch data directly into the save_path as if it was a PUT
Like this:
Copy code
{
  "entries": [
    {
      "data": {
        "op": "add",
        "path": "/default/test",
        "value": {
          "2": "Barry",
          "3": "Fred"
        }
      },
      "save_method": "PATCH",
      "topics": [
        "test_topic"
      ],
      "url": ""
    }
  ],
  "id": "0f893d00-24de-4856-9068-59fee8335a57",
  "reason": "Test reason 1"
}
If the support is there perhaps it's just in the wrong format or something
r
@Ben Wallis There’s no support for anything but ‘PUT’. The PR is not merged, it requires a bit more work
b
Oh I didn't even notice it was still open 🤦‍♂️
OK no problem - good to know that support will be coming though 🙂
👍 1