chore: reorganize docs apps (#7228)

* reorganize docs apps

* add README

* fix directory

* add condition for old docs
This commit is contained in:
Shahed Nasser
2024-05-03 17:36:38 +03:00
committed by GitHub
parent 224ebb2154
commit 4fe28f5a95
6187 changed files with 601447 additions and 598226 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,10 @@
curl -X POST '{backend_url}/admin/customer-groups/{id}/customers/batch' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_ids": [
{
"id": "id_dx2Wieq4uGG"
}
]
}'

View File

@@ -0,0 +1,10 @@
curl -X POST '{backend_url}/admin/customer-groups/{id}/customers/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_ids": [
{
"id": "id_oAhMZi39hsjIOqPA6"
}
]
}'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,10 @@
curl -X POST '{backend_url}/admin/fulfillment/shipping-options/{id}/rules/batch/add' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rules": [
{
"attribute": "{value}"
}
]
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/fulfillment/shipping-options/{id}/rules/batch/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rule_ids": [
"{value}"
]
}'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,7 @@
curl -X POST '{backend_url}/admin/inventory-items/{id}/location-levels' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"location_id": "{value}",
"stocked_quantity": 1506469662949376
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \
-H 'x-medusa-access-token: {api_token}'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,14 @@
curl -X POST '{backend_url}/admin/price-lists' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"title": "{value}",
"description": "{value}",
"prices": [
{
"currency_code": "{value}",
"amount": 1270314195484672,
"variant_id": "{value}"
}
]
}'

View File

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

View File

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

View File

@@ -0,0 +1,12 @@
curl -X POST '{backend_url}/admin/price-lists/{id}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"prices": [
{
"currency_code": "{value}",
"amount": 1670236243755008,
"variant_id": "{value}"
}
]
}'

View File

@@ -0,0 +1,12 @@
curl -X POST '{backend_url}/admin/price-lists/{id}/prices/batch/add' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"prices": [
{
"currency_code": "{value}",
"amount": 6595965345595392,
"variant_id": "{value}"
}
]
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/price-lists/{id}/prices/batch/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"ids": [
"{value}"
]
}'

View File

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

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/pricing/rule-types' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "Thurman",
"rule_attribute": "{value}",
"default_priority": 4640267816665088
}'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,13 @@
curl -X POST '{backend_url}/admin/promotions/{id}/buy-rules/batch/add' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rules": [
{
"attribute": "{value}",
"values": [
"{value}"
]
}
]
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/promotions/{id}/buy-rules/batch/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rule_ids": [
"{value}"
]
}'

View File

@@ -0,0 +1,13 @@
curl -X POST '{backend_url}/admin/promotions/{id}/rules/batch/add' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rules": [
{
"attribute": "{value}",
"values": [
"{value}"
]
}
]
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/promotions/{id}/rules/batch/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rule_ids": [
"{value}"
]
}'

View File

@@ -0,0 +1,14 @@
curl -X POST '{backend_url}/admin/promotions/{id}/rules/batch/update' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rules": [
{
"id": "id_orjnxCxIQlJAp4",
"attribute": "{value}",
"values": [
"{value}"
]
}
]
}'

View File

@@ -0,0 +1,13 @@
curl -X POST '{backend_url}/admin/promotions/{id}/target-rules/batch/add' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rules": [
{
"attribute": "{value}",
"values": [
"{value}"
]
}
]
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/promotions/{id}/target-rules/batch/remove' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"rule_ids": [
"{value}"
]
}'

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More