docs: fix bugs in API reference (#10557)

This commit is contained in:
Shahed Nasser
2024-12-11 18:32:58 +02:00
committed by GitHub
parent 0264294ab5
commit cccce65ef9
26 changed files with 91 additions and 76 deletions

View File

@@ -34,8 +34,8 @@
* - lang: Shell
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Customers

View File

@@ -37,8 +37,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/carts/{id}/line-items' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "variant_id": "{value}",
* "quantity": 3360689747918848,

View File

@@ -43,8 +43,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "quantity": 8980402259623936,
* "metadata": {}

View File

@@ -45,8 +45,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/carts/{id}/promotions' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "promo_codes": [
* "{value}"

View File

@@ -51,8 +51,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "option_id": "{value}"
* }'

View File

@@ -31,8 +31,8 @@
* source: |-
* curl -X POST '{backend_url}/store/customers' \
* -H 'Authorization: Bearer {token}' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "email": "Monserrate.Leannon88@yahoo.com",
* "company_name": "{value}",

View File

@@ -34,8 +34,8 @@
* source: |-
* curl -X POST '{backend_url}/store/customers/me' \
* -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "company_name": "{value}",
* "first_name": "{value}",

View File

@@ -92,8 +92,8 @@
* source: |-
* curl -X POST '{backend_url}/store/customers/me/addresses' \
* -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "metadata": {},
* "first_name": "{value}",

View File

@@ -98,8 +98,8 @@
* source: |-
* curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \
* -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "first_name": "{value}",
* }'

View File

@@ -30,8 +30,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/payment-collections' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "cart_id": "{value}"
* }'

View File

@@ -38,8 +38,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "provider_id": "{value}"
* }'

View File

@@ -14,8 +14,8 @@
* label: cURL
* source: |-
* curl -X POST '{backend_url}/store/return' \
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* -H 'Content-Type: application/json' \
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
* --data-raw '{
* "order_id": "{value}",
* "items": [