1

When configuring Open Commerce API settings is there a configuration that would provide read and write access to all resources?

Something like:

{
  "_v":"18.3",
  "clients":
  [
    {
      "allowed_origins":["http://www.sitegenesis.com","https://secure.sitegenesis.com"],
      "client_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "resources":
      [
        {
          "resource_id":"/*",
          "methods":["get","patch","delete","put"],
          "read_attributes":"(**)",
          "write_attributes":"(**)"
        }
      ]
    }
  ]
}
0

With this settings you get the full access to the desired resource and all sub-resources.

"resources": [
    {
      "resource_id": "/**",
      "methods": [
        "put",
        "get",
        "post",
        "patch"
      ],
      "read_attributes": "(**)",
      "write_attributes": "(**)"
    }
  ]
  • 2
    Please include explanation of why you should use these settings rather than just a code dump. See How to Answer for how to write a good answer. – Dave Humm Feb 6 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.