chore(docs): Updated API Reference (v2) (#8609)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-08-15 14:31:35 +00:00
committed by GitHub
parent 4bd0917aed
commit b23ddcdde8
1211 changed files with 92070 additions and 5062 deletions

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/claims/{id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/exchanges' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,7 @@
curl -X POST '{backend_url}/admin/exchanges' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"order_id": "{value}",
"metadata": {}
}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/cancel' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/inbound/items' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/items/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/inbound/items/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/inbound/shipping-method' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/inbound/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/outbound/items' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/items/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/outbound/items/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/outbound/shipping-method' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/outbound/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/exchanges/{id}/request' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/exchanges/{id}/request' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/product-variants' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/refund-reasons' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,7 @@
curl -X POST '{backend_url}/admin/refund-reasons' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"label": "{value}",
"description": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/refund-reasons/{id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/refund-reasons/{id}' \
-H 'x-medusa-access-token: {api_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/refund-reasons/{id}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"description": "{value}"
}'