From 0825ca85a7934bfe28b6580710acd4ab29d60401 Mon Sep 17 00:00:00 2001 From: Max Gialanella Date: Wed, 22 Dec 2021 11:21:12 -0700 Subject: [PATCH] Added Ocapi settings example json --- .../OCAPI_SHOP_Products_example.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 OCAPI_Settings_Examples/OCAPI_SHOP_Products_example.json diff --git a/OCAPI_Settings_Examples/OCAPI_SHOP_Products_example.json b/OCAPI_Settings_Examples/OCAPI_SHOP_Products_example.json new file mode 100644 index 0000000..30cbb10 --- /dev/null +++ b/OCAPI_Settings_Examples/OCAPI_SHOP_Products_example.json @@ -0,0 +1,32 @@ +{ + "_v": "21.9a", + "clients": [ + { + "allowed_origins": [ + "http://www.sitegenesis.com", + "https://secure.sitegenesis.com" + ], + "client_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "resources": [ + { + "resource_id": "/product_search", + "methods": [ + "get" + ], + "read_attributes": "(**)", + "write_attributes": "(**)", + "cache_time": 900 + }, + { + "resource_id": "/products/*", + "methods": [ + "get" + ], + "read_attributes": "(**)", + "write_attributes": "(**)", + "cache_time": 900 + } + ] + } + ] +} \ No newline at end of file