From 3f2ac374ea7d4a3671ca7f7ebdf839e92d423d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20M=C4=99dryga=C5=82?= Date: Tue, 20 Aug 2024 10:30:31 +0200 Subject: [PATCH] feat: added example requests --- examples/0_media.json | 16 ++++++++++++ examples/1_products.json | 14 +++++++++++ examples/2_product_seo.json | 17 +++++++++++++ examples/3_organizations.json | 47 +++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 examples/0_media.json create mode 100644 examples/1_products.json create mode 100644 examples/2_product_seo.json create mode 100644 examples/3_organizations.json diff --git a/examples/0_media.json b/examples/0_media.json new file mode 100644 index 0000000..def789a --- /dev/null +++ b/examples/0_media.json @@ -0,0 +1,16 @@ +[ + { + "method": "POST", + "url": "https://api.url/media", + "body": { + "id": "podajemy manualnie id by wiedzieć co potem dodać potem do produktu" + }, + "auth": { + "email": "test@example.com", + "password": "secret" + }, + "files": { + "file": "https://example.com/image.jpg" + } + } +] diff --git a/examples/1_products.json b/examples/1_products.json new file mode 100644 index 0000000..1c2a544 --- /dev/null +++ b/examples/1_products.json @@ -0,0 +1,14 @@ +[ + { + "method": "POST", + "url": "https://api.url/products", + "body": { + "id": "podajemy manualnie jeśli chcemy by wiedzieć do czego zpatchować potem seo", + "media": ["uuid-media-1"] + }, + "auth": { + "email": "test@example.com", + "password": "secret" + } + } +] diff --git a/examples/2_product_seo.json b/examples/2_product_seo.json new file mode 100644 index 0000000..5baf796 --- /dev/null +++ b/examples/2_product_seo.json @@ -0,0 +1,17 @@ +[ + { + "method": "PATCH", + "url": "https://api.url/products/id:uuid-product-1", + "body": { + "seo": { + "title": "sample title", + "description": "description", + "og_image_id": "tu pewnie uuid jakiegoś media?" + } + }, + "auth": { + "email": "test@example.com", + "password": "secret" + } + } +] diff --git a/examples/3_organizations.json b/examples/3_organizations.json new file mode 100644 index 0000000..a6740ea --- /dev/null +++ b/examples/3_organizations.json @@ -0,0 +1,47 @@ +[ + { + "method": "POST", + "url": "https://api.url/organizations", + "body": { + "id": "manual-uuid if needed", + "client_id": "client-id", + "billing_email": "billing_email@email.com", + "billing_address": { + "name": "string", + "company_name": "string", + "address": "string", + "city": "string", + "country": "string", + "country_name": "string", + "phone": "string", + "vat": "string", + "zip": "string" + }, + "consents": { + "uuid": true + }, + "sales_channel_id": "sales-channel-id", + "shipping_addresses": [ + { + "default": true, + "name": "default", + "address": { + "name": "string", + "company_name": "string", + "address": "string", + "city": "string", + "country": "string", + "country_name": "string", + "phone": "string", + "vat": "string", + "zip": "string" + } + } + ] + }, + "auth": { + "email": "test@example.com", + "password": "secret" + } + } +]