From 5e2dd301ac8fe60a28d767236581c750162f3a1d Mon Sep 17 00:00:00 2001 From: jmleroux Date: Tue, 8 Jul 2025 11:42:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20Postman=20collection=20?= =?UTF-8?q?for=20HTTP=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Akeneo PIM API.postman_collection.json | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/content/files/Akeneo PIM API.postman_collection.json b/content/files/Akeneo PIM API.postman_collection.json index 6832abfaf..e6e27696b 100644 --- a/content/files/Akeneo PIM API.postman_collection.json +++ b/content/files/Akeneo PIM API.postman_collection.json @@ -5541,6 +5541,115 @@ "type": "text/plain" } } + }, + { + "name": "HTTP hooks", + "item": [ + { + "name": "List hooks", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer {{token}}" + }, + { + "key": "Cookie", + "value": "" + } + ], + "url": { + "raw": "{{url}}/api/rest/v1/http-hook", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "rest", + "v1", + "http-hook" + ] + } + }, + "response": [] + }, + { + "name": "Upsert hook", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer {{token}}" + }, + { + "key": "Cookie", + "value": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"hookType\": \"product.preLoad\",\n \"failureMode\": \"reject-save\",\n \"endpoint\": \"http://httpd/hook_preload.json\",\n \"secret\": \"my_secret\",\n \"headers\": {\n \"some-custom-header\": \"yes\"\n }\n}" + }, + "url": { + "raw": "{{url}}/api/rest/v1/http-hook", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "rest", + "v1", + "http-hook" + ] + } + }, + "response": [] + }, + { + "name": "Delete hook", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer {{token}}" + }, + { + "key": "Cookie", + "value": "" + } + ], + "url": { + "raw": "{{url}}/api/rest/v1/http-hook/product.preLoad", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "rest", + "v1", + "http-hook", + "product.preLoad" + ] + } + }, + "response": [] + } + ] } ], "event": [