Skip to content

Commit

Permalink
feat: added example requests
Browse files Browse the repository at this point in the history
  • Loading branch information
demtario committed Aug 20, 2024
1 parent d4f56ce commit 3f2ac37
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/0_media.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"password": "secret"
},
"files": {
"file": "https://example.com/image.jpg"
}
}
]
14 changes: 14 additions & 0 deletions examples/1_products.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"password": "secret"
}
}
]
17 changes: 17 additions & 0 deletions examples/2_product_seo.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"password": "secret"
}
}
]
47 changes: 47 additions & 0 deletions examples/3_organizations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"method": "POST",
"url": "https://api.url/organizations",
"body": {
"id": "manual-uuid if needed",
"client_id": "client-id",
"billing_email": "[email protected]",
"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": "[email protected]",
"password": "secret"
}
}
]

0 comments on commit 3f2ac37

Please sign in to comment.