chore(docs): Generated API Reference (#2143)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4961aece1c
commit
a1350bfaec
2
docs/api/store/code_samples/Shell/auth/deleteundefined
Normal file
2
docs/api/store/code_samples/Shell/auth/deleteundefined
Normal file
@@ -0,0 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/store/auth' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
2
docs/api/store/code_samples/Shell/auth/getundefined
Normal file
2
docs/api/store/code_samples/Shell/auth/getundefined
Normal file
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/auth' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
6
docs/api/store/code_samples/Shell/auth/postundefined
Normal file
6
docs/api/store/code_samples/Shell/auth/postundefined
Normal file
@@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/auth' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
"password": "supersecret"
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/auth/user@example.com' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
1
docs/api/store/code_samples/Shell/carts/postundefined
Normal file
1
docs/api/store/code_samples/Shell/carts/postundefined
Normal file
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/carts/{id}'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com"
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/complete'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/store/carts/{id}/discounts/{code}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/line-items' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"variant_id": "{variant_id}",
|
||||
"quantity": 1
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/store/carts/{id}/line-items/{line_id}'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/line-items/{line_id}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"quantity": 1
|
||||
}'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/payment-sessions' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"provider_id": "manual"
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/payment-sessions'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/store/carts/{id}/payment-sessions/manual'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/payment-sessions/manual' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"data": {}
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/payment-sessions/manual/refresh'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/shipping-methods' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"option_id": "{option_id}",
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/carts/{id}/taxes'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/collections'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/collections/{id}'
|
||||
@@ -0,0 +1,8 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"first_name": "Alec",
|
||||
"last_name": "Reynolds",
|
||||
"email": "user@example.com",
|
||||
"password": "supersecret"
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/customers/me' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers/me' \
|
||||
--header 'Cookie: connect.sid={sid}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"first_name": "Laury"
|
||||
}'
|
||||
@@ -0,0 +1,13 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers/me/addresses' \
|
||||
--header 'Cookie: connect.sid={sid}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"address": {
|
||||
"first_name": "Celia",
|
||||
"last_name": "Schumm",
|
||||
"address_1": "225 Bednar Curve",
|
||||
"city": "Danielville",
|
||||
"country_code": "US",
|
||||
"postal_code": "85137"
|
||||
}
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/store/customers/me/addresses/{address_id}' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers/me/addresses/{address_id}' \
|
||||
--header 'Cookie: connect.sid={sid}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"first_name": "Gina"
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/customers/me/orders' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/customers/me/payment-methods' \
|
||||
--header 'Cookie: connect.sid={sid}'
|
||||
@@ -0,0 +1,7 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers/password-reset' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
"password": "supersecret",
|
||||
"token": "supersecrettoken"
|
||||
}'
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/customers/password-token' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com"
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/gift-cards/{code}'
|
||||
1
docs/api/store/code_samples/Shell/orders/getundefined
Normal file
1
docs/api/store/code_samples/Shell/orders/getundefined
Normal file
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/orders?display_id=1&email=user@example.com'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/orders/cart/{id}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/orders/{id}'
|
||||
1
docs/api/store/code_samples/Shell/products/getundefined
Normal file
1
docs/api/store/code_samples/Shell/products/getundefined
Normal file
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/products'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/products/search?q=Shirt'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/products/{id}'
|
||||
1
docs/api/store/code_samples/Shell/regions/getundefined
Normal file
1
docs/api/store/code_samples/Shell/regions/getundefined
Normal file
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/regions'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/regions/{id}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/return-reasons'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/return-reasons/{id}'
|
||||
11
docs/api/store/code_samples/Shell/returns/postundefined
Normal file
11
docs/api/store/code_samples/Shell/returns/postundefined
Normal file
@@ -0,0 +1,11 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/returns' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"order_id": "asfasf",
|
||||
"items": [
|
||||
{
|
||||
"item_id": "assfasf",
|
||||
"quantity": 1
|
||||
}
|
||||
]
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/shipping-options'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/shipping-options/{cart_id}'
|
||||
17
docs/api/store/code_samples/Shell/swaps/postundefined
Normal file
17
docs/api/store/code_samples/Shell/swaps/postundefined
Normal file
@@ -0,0 +1,17 @@
|
||||
curl --location --request POST 'https://medusa-url.com/store/swaps' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"order_id": "asfasf",
|
||||
"return_items": [
|
||||
{
|
||||
"item_id": "asfas",
|
||||
"quantity": 1
|
||||
}
|
||||
],
|
||||
"additional_items": [
|
||||
{
|
||||
"variant_id": "asfas",
|
||||
"quantity": 1
|
||||
}
|
||||
]
|
||||
}'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/swaps/{cart_id}'
|
||||
1
docs/api/store/code_samples/Shell/variants/getundefined
Normal file
1
docs/api/store/code_samples/Shell/variants/getundefined
Normal file
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/variants'
|
||||
@@ -0,0 +1 @@
|
||||
curl --location --request GET 'https://medusa-url.com/store/variants/{id}'
|
||||
Reference in New Issue
Block a user