Skip to content

Commit

Permalink
oas: update authorization header in cURL examples (#9100)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Sep 16, 2024
1 parent 8d3fb7f commit 05c8826
Show file tree
Hide file tree
Showing 285 changed files with 285 additions and 285 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/api-keys/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Api Keys
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/campaigns/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Campaigns
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/claims/{id}/claim-items/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/inbound/items/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/inbound/items/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/inbound/shipping-method/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/inbound/shipping-method/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/items/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/items/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/shipping-method/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/shipping-method/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/claims/{id}/request' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Claims
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/collections/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Collections
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/customer-groups/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Customer Groups
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/customers/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Customers
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/customers/{id}/addresses/{address_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/customers/{id}/addresses/{address_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Customers
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/items/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/items/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Exchanges
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/shipping-method/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/inbound/shipping-method/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Exchanges
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/items/{action_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/items/{action_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Exchanges
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/shipping-method/{action_id}'\\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/exchanges/{id}/outbound/shipping-method/{action_id}'\\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Exchanges
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/exchanges/{id}/request' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Exchanges
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/fulfillment-sets/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Fulfillment Sets
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/fulfillment-sets/{id}/service-zones/{zone_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/fulfillment-sets/{id}/service-zones/{zone_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Fulfillment Sets
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/inventory-items/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Inventory Items
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: "curl -X DELETE '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \\ -H 'x-medusa-access-token: {api_token}'"
* source: "curl -X DELETE '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \\ -H 'Authorization: Bearer {access_token}'"
* tags:
* - Inventory Items
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/order-edits/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Order Edits
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/order-edits/{id}/items/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Order Edits
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/order-edits/{id}/shipping-method/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Order Edits
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/payment-collections/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Payment Collections
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/price-lists/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Price Lists
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/price-preferences/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Price Preferences
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/product-categories/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Product Categories
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/product-tags/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Product Tags
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/product-types/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Product Types
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/products/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Products
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/products/{id}/options/{option_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Products
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/products/{id}/variants/{variant_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Products
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/products/{id}/variants/{variant_id}/inventory-items/{inventory_item_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Products
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/promotions/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Promotions
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/refund-reasons/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Refund Reasons
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/regions/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Regions
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/reservations/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Reservations
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/return-reasons/{id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Return Reasons
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/returns/{id}/dismiss-items/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Returns
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/returns/{id}/receive-items/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Returns
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/returns/{id}/receive' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Returns
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/returns/{id}/request-items/{action_id}' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Returns
* responses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* label: cURL
* source: |-
* curl -X DELETE '{backend_url}/admin/returns/{id}/request' \
* -H 'x-medusa-access-token: {api_token}'
* -H 'Authorization: Bearer {access_token}'
* tags:
* - Returns
* responses:
Expand Down
Loading

0 comments on commit 05c8826

Please sign in to comment.