Skip to content

Commit

Permalink
Update postman collection (publish_public_api_doc run #8507)
Browse files Browse the repository at this point in the history
  • Loading branch information
epages-ci-bot authored and Jenkins CI Bot committed Nov 27, 2024
1 parent 2a1be75 commit b931a9c
Showing 1 changed file with 41 additions and 12 deletions.
53 changes: 41 additions & 12 deletions postman_collections/beyond.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item" : [ {
"id" : "callback-product-created",
"id" : "callback-shop-deleted",
"name" : "/callback",
"description" : "Callback example for the `product.created` webhook subscription event. The `product.updated` and `product.deleted` events follow the same request structure.",
"description" : "Callback example for the `shop.deleted` webhook subscription event.",
"variable" : [ ],
"event" : [ ],
"request" : {
Expand Down Expand Up @@ -35,11 +35,40 @@
} ],
"body" : {
"mode" : "raw",
"raw" : "{\n \"_payloadType\" : \"product\",\n \"_id\" : \"92832f2f-0092-4ea4-a57d-e0f86bff39be\",\n \"sku\" : \"dc76f20c-e0a9-49e5-8c6e-4c3479ed4812\",\n \"name\" : \"Rioja Castillo de Puerto (2013)\",\n \"description\" : \"Spain\\nRioja Tempranillo\",\n \"salesPrice\" : {\n \"taxModel\" : \"NET\",\n \"currency\" : \"EUR\",\n \"amount\" : 7.05,\n \"derivedPrice\" : {\n \"taxModel\" : \"GROSS\",\n \"currency\" : \"EUR\",\n \"amount\" : 8.3895,\n \"taxRate\" : 0.19\n }\n },\n \"listPrice\" : {\n \"taxModel\" : \"NET\",\n \"currency\" : \"EUR\",\n \"amount\" : 8.87,\n \"derivedPrice\" : {\n \"taxModel\" : \"GROSS\",\n \"currency\" : \"EUR\",\n \"amount\" : 10.5553,\n \"taxRate\" : 0.19\n }\n },\n \"refPrice\" : {\n \"refQuantity\" : 1,\n \"unit\" : \"LITER\",\n \"quantity\" : 0.75,\n \"price\" : {\n \"taxModel\" : \"NET\",\n \"currency\" : \"EUR\",\n \"amount\" : 9.4,\n \"derivedPrice\" : {\n \"taxModel\" : \"GROSS\",\n \"currency\" : \"EUR\",\n \"amount\" : 11.186,\n \"taxRate\" : 0.19\n }\n }\n },\n \"taxClass\" : \"REGULAR\",\n \"manufacturerPrice\" : {\n \"taxModel\" : \"NET\",\n \"currency\" : \"EUR\",\n \"amount\" : 9.68,\n \"derivedPrice\" : {\n \"taxModel\" : \"GROSS\",\n \"currency\" : \"EUR\",\n \"amount\" : 11.5192,\n \"taxRate\" : 0.19\n }\n },\n \"tags\" : [ \"Bestseller\", \"Red Wine\", \"Sale\" ],\n \"productIdentifiers\" : [ {\n \"type\" : \"EAN\",\n \"value\" : \"9780134308135\"\n } ],\n \"manufacturer\" : \"Grape Vineyard\",\n \"essentialFeatures\" : \"Dry. 12% alcohol. Best vine variety.\",\n \"variationAttributeValues\" : [ {\n \"displayName\" : \"Color\",\n \"value\" : \"green\"\n }, {\n \"displayName\" : \"Size (US)\",\n \"value\" : \"10\"\n } ]\n}",
"raw" : "{\n \"_payloadType\" : \"shop\",\n \"name\" : \"My little Cornershop\",\n \"primaryHostname\" : \"cornershop.amazingdiscounts.xyz\",\n \"fallbackHostname\" : \"cornershop.beyondshop.cloud\",\n \"_id\" : \"e5bdb7da-09f2-4772-9799-7d3fbfd7c5f7\"\n}",
"urlencoded" : [ ]
}
},
"response" : [ {
"id" : "callback-shop-deleted",
"name" : "callback-shop-deleted",
"originalRequest" : {
"url" : {
"protocol" : "https",
"host" : "{{host}}",
"path" : "/api/callback"
},
"method" : "POST",
"header" : [ {
"key" : "Content-Type",
"value" : "application/json",
"disabled" : false
} ],
"body" : {
"mode" : "raw",
"raw" : "{\n \"_payloadType\" : \"shop\",\n \"name\" : \"My little Cornershop\",\n \"primaryHostname\" : \"cornershop.amazingdiscounts.xyz\",\n \"fallbackHostname\" : \"cornershop.beyondshop.cloud\",\n \"_id\" : \"e5bdb7da-09f2-4772-9799-7d3fbfd7c5f7\"\n}",
"urlencoded" : [ ]
}
},
"header" : [ {
"key" : "Content-Type",
"value" : "application/json",
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"errorId\" : \"internal-error\",\n \"details\" : { },\n \"message\" : \"No static resource callback.\",\n \"traceId\" : null\n}",
"code" : 500
}, {
"id" : "callback-product-created",
"name" : "callback-product-created",
"originalRequest" : {
Expand Down Expand Up @@ -114,7 +143,7 @@
} ],
"body" : {
"mode" : "raw",
"raw" : "{\n \"_payloadType\" : \"app\",\n \"_id\" : \"a087ecf0-bc8c-47ef-bbd1-9c1f4dc1d7a8\",\n \"clientId\" : \"clientId\",\n \"feature\" : \"app.test-app\",\n \"name\" : { }\n}",
"raw" : "{\n \"_payloadType\" : \"app\",\n \"_id\" : \"9894492a-8f2a-461e-8659-a35e20b89574\",\n \"clientId\" : \"clientId\",\n \"feature\" : \"app.test-app\",\n \"name\" : { }\n}",
"urlencoded" : [ ]
}
},
Expand Down Expand Up @@ -183,7 +212,7 @@
} ],
"body" : {
"mode" : "raw",
"raw" : "{\n \"_payloadType\" : \"shop\",\n \"name\" : \"brand new name\",\n \"primaryHostname\" : \"cornershop.amazingdiscounts.xyz\",\n \"fallbackHostname\" : \"cornershop.beyondshop.cloud\",\n \"_id\" : \"378958d2-1858-4070-a6e3-853e019c9bbe\"\n}",
"raw" : "{\n \"_payloadType\" : \"shop\",\n \"name\" : \"brand new name\",\n \"primaryHostname\" : \"cornershop.amazingdiscounts.xyz\",\n \"fallbackHostname\" : \"cornershop.beyondshop.cloud\",\n \"_id\" : \"2eda0fd4-7534-4024-bded-a94a494cbe64\"\n}",
"urlencoded" : [ ]
}
},
Expand Down Expand Up @@ -17838,7 +17867,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"ce2dd1a7-2223-4be6-84df-e367e9521183\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/ce2dd1a7-2223-4be6-84df-e367e9521183\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/ce2dd1a7-2223-4be6-84df-e367e9521183/deactivate\"\n }\n }\n}",
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"2eec473c-2aac-439b-a8ab-8061ab9d9f57\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/2eec473c-2aac-439b-a8ab-8061ab9d9f57\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/2eec473c-2aac-439b-a8ab-8061ab9d9f57/deactivate\"\n }\n }\n}",
"code" : 201
}, {
"id" : "overlapping-event-types-error",
Expand Down Expand Up @@ -17930,7 +17959,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"_embedded\" : {\n \"subscriptions\" : [ {\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"42624f31-f185-4a30-8f8f-30540bbef2f7\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/42624f31-f185-4a30-8f8f-30540bbef2f7\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/42624f31-f185-4a30-8f8f-30540bbef2f7/deactivate\"\n }\n }\n } ]\n },\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions\"\n }\n },\n \"page\" : {\n \"size\" : 20,\n \"totalElements\" : 1,\n \"totalPages\" : 1,\n \"number\" : 0\n }\n}",
"body" : "{\n \"_embedded\" : {\n \"subscriptions\" : [ {\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"f69201ad-58fd-4c00-8aab-4aeedf8b63f3\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f69201ad-58fd-4c00-8aab-4aeedf8b63f3\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f69201ad-58fd-4c00-8aab-4aeedf8b63f3/deactivate\"\n }\n }\n } ]\n },\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions\"\n }\n },\n \"page\" : {\n \"size\" : 20,\n \"totalElements\" : 1,\n \"totalPages\" : 1,\n \"number\" : 0\n }\n}",
"code" : 200
} ]
}, {
Expand Down Expand Up @@ -18012,7 +18041,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"callbackUri\" : \"http://example.com/test/updated\",\n \"eventTypes\" : [ \"product.updated\" ],\n \"active\" : true,\n \"_id\" : \"f22ae17f-f0c1-43a0-904c-3cba87a87bbe\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f22ae17f-f0c1-43a0-904c-3cba87a87bbe\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f22ae17f-f0c1-43a0-904c-3cba87a87bbe/deactivate\"\n }\n }\n}",
"body" : "{\n \"callbackUri\" : \"http://example.com/test/updated\",\n \"eventTypes\" : [ \"product.updated\" ],\n \"active\" : true,\n \"_id\" : \"b6545afa-6b41-4f05-aea7-69b1e62ad63e\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/b6545afa-6b41-4f05-aea7-69b1e62ad63e\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/b6545afa-6b41-4f05-aea7-69b1e62ad63e/deactivate\"\n }\n }\n}",
"code" : 200
} ]
}, {
Expand Down Expand Up @@ -18046,7 +18075,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"3c23e4d8-fb5b-4902-8b78-af2e8ae4f8bf\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3c23e4d8-fb5b-4902-8b78-af2e8ae4f8bf\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3c23e4d8-fb5b-4902-8b78-af2e8ae4f8bf/deactivate\"\n }\n }\n}",
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"6e08dddf-f8c5-488f-9534-c41a51ce9b10\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/6e08dddf-f8c5-488f-9534-c41a51ce9b10\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/6e08dddf-f8c5-488f-9534-c41a51ce9b10/deactivate\"\n }\n }\n}",
"code" : 200
} ]
}, {
Expand Down Expand Up @@ -18080,7 +18109,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"e8526b16-66ae-49df-a422-544ee2cb7bbf\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/e8526b16-66ae-49df-a422-544ee2cb7bbf\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/e8526b16-66ae-49df-a422-544ee2cb7bbf/deactivate\"\n }\n }\n}",
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : true,\n \"_id\" : \"143d3dea-f144-4dc1-a7bb-a3c68b2fd819\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/143d3dea-f144-4dc1-a7bb-a3c68b2fd819\"\n },\n \"deactivate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/143d3dea-f144-4dc1-a7bb-a3c68b2fd819/deactivate\"\n }\n }\n}",
"code" : 200
} ]
}, {
Expand Down Expand Up @@ -18114,7 +18143,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : false,\n \"_id\" : \"242bf67b-408c-4f12-a7ae-49b105839e0f\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/242bf67b-408c-4f12-a7ae-49b105839e0f\"\n },\n \"activate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/242bf67b-408c-4f12-a7ae-49b105839e0f/activate\"\n }\n }\n}",
"body" : "{\n \"callbackUri\" : \"http://example.com/test\",\n \"eventTypes\" : [ \"order.created\", \"product.created\" ],\n \"active\" : false,\n \"_id\" : \"fa146419-4a0a-45b2-b5de-f16bb78a4998\",\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/fa146419-4a0a-45b2-b5de-f16bb78a4998\"\n },\n \"activate\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/fa146419-4a0a-45b2-b5de-f16bb78a4998/activate\"\n }\n }\n}",
"code" : 200
} ]
}, {
Expand Down Expand Up @@ -18148,7 +18177,7 @@
"disabled" : false
} ],
"cookie" : [ ],
"body" : "{\n \"_embedded\" : {\n \"failures\" : [ {\n \"createdAt\" : \"2024-11-26T09:32:22.029392306\",\n \"request\" : {\n \"eventType\" : \"app.uninstalled\",\n \"payload\" : \"{\\n \\\"payloadType\\\" : \\\"app\\\",\\n \\\"_id\\\" : \\\"5b3b0606-bc78-4824-93cf-a2855345ad40\\\",\\n \\\"clientId\\\" : \\\"clientId\\\",\\n \\\"feature\\\" : \\\"app.test-app\\\",\\n \\\"name\\\" : { }\\n}\"\n },\n \"response\" : {\n \"status\" : 500,\n \"payload\" : \"{\\n\\\"errorId\\\":\\\"unknown\\\"}\\n\"\n },\n \"_id\" : \"12ad0b77-986c-44e5-999e-89aa19387000\",\n \"_links\" : {\n \"webhook-subscription\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3fe0c2a7-9ea8-4685-9a67-b0d3cf56fb81\"\n },\n \"retry\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3fe0c2a7-9ea8-4685-9a67-b0d3cf56fb81/failures/12ad0b77-986c-44e5-999e-89aa19387000/retry\"\n },\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3fe0c2a7-9ea8-4685-9a67-b0d3cf56fb81/failures/12ad0b77-986c-44e5-999e-89aa19387000\"\n }\n }\n } ]\n },\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/3fe0c2a7-9ea8-4685-9a67-b0d3cf56fb81/failures?page=0&size=20&sort=createdAt,desc\"\n }\n },\n \"page\" : {\n \"size\" : 20,\n \"totalElements\" : 1,\n \"totalPages\" : 1,\n \"number\" : 0\n }\n}",
"body" : "{\n \"_embedded\" : {\n \"failures\" : [ {\n \"createdAt\" : \"2024-11-27T07:59:12.553884496\",\n \"request\" : {\n \"eventType\" : \"app.uninstalled\",\n \"payload\" : \"{\\n \\\"payloadType\\\" : \\\"app\\\",\\n \\\"_id\\\" : \\\"5b3b0606-bc78-4824-93cf-a2855345ad40\\\",\\n \\\"clientId\\\" : \\\"clientId\\\",\\n \\\"feature\\\" : \\\"app.test-app\\\",\\n \\\"name\\\" : { }\\n}\"\n },\n \"response\" : {\n \"status\" : 500,\n \"payload\" : \"{\\n\\\"errorId\\\":\\\"unknown\\\"}\\n\"\n },\n \"_id\" : \"f9862224-e939-43d3-b3b8-3948974e2487\",\n \"_links\" : {\n \"webhook-subscription\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f9d83d44-93fa-42bb-9571-c08aadd0d362\"\n },\n \"retry\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f9d83d44-93fa-42bb-9571-c08aadd0d362/failures/f9862224-e939-43d3-b3b8-3948974e2487/retry\"\n },\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f9d83d44-93fa-42bb-9571-c08aadd0d362/failures/f9862224-e939-43d3-b3b8-3948974e2487\"\n }\n }\n } ]\n },\n \"_links\" : {\n \"self\" : {\n \"href\" : \"https://yourshop.api.urn/webhook-subscriptions/f9d83d44-93fa-42bb-9571-c08aadd0d362/failures?page=0&size=20&sort=createdAt,desc\"\n }\n },\n \"page\" : {\n \"size\" : 20,\n \"totalElements\" : 1,\n \"totalPages\" : 1,\n \"number\" : 0\n }\n}",
"code" : 200
} ]
}, {
Expand Down

0 comments on commit b931a9c

Please sign in to comment.