docs: generate OAS manually for 2.7.0 (#12158)

* original changes

* changes

* fixes for delete operations

* generate oas
This commit is contained in:
Shahed Nasser
2025-04-11 16:41:39 +03:00
committed by GitHub
parent f8023f419e
commit cd66cdd2bb
1028 changed files with 29859 additions and 286 deletions

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/convert-to-order' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/edit' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/confirm' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/items' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/items/item/{item_id}' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"quantity": 0
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/edit/items/{action_id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/items/{action_id}' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"quantity": 39
}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/edit/promotions' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/promotions' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"promo_codes": [
"{value}"
]
}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/request' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/shipping-methods' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/shipping-methods/method/{method_id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/edit/shipping-methods/{action_id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/shipping-methods/{action_id}' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'

View File

@@ -0,0 +1,8 @@
curl -X POST '{backend_url}/admin/orders/{id}/credit-lines' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"amount": 32,
"reference": "{value}",
"reference_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/plugins' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -1,6 +0,0 @@
curl -X POST '{backend_url}/auth/user/emailpass' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "admin@medusa-test.com",
"password": "supersecret"
}'

View File

@@ -1 +0,0 @@
curl -X POST '{backend_url}/auth/user/google/callback?code=123'