docs: generate API reference for 2.10.3 (#13548)

* docs: generate API reference for 2.10.3

* fix curl example
This commit is contained in:
Shahed Nasser
2025-09-19 11:40:52 +03:00
committed by GitHub
parent 0e45249b30
commit 2f990a14e6
68 changed files with 4955 additions and 327 deletions

View File

@@ -92,3 +92,16 @@ post:
security:
- cookie_auth: []
- jwt_token: []
requestBody:
content:
application/json:
schema:
type: object
description: Optional additional data to pass to the underlying workflow.
properties:
additional_data:
type: object
description: >-
Pass additional custom data to the API route. This data is
passed to the underlying workflow under the `additional_data`
parameter.

View File

@@ -45,7 +45,34 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/StoreAddCartLineItem.yaml
allOf:
- type: object
description: The details of the line item to add.
required:
- variant_id
- quantity
properties:
variant_id:
type: string
title: variant_id
description: The ID of the product variant to add as a line item.
quantity:
type: number
title: quantity
description: The item's quantity.
metadata:
type: object
description: The item's metadata, can hold custom key-value pairs.
- type: object
description: The details of the line item to add.
properties:
additional_data:
type: object
description: >-
Pass additional custom data to the API route. This data is
passed to the underlying workflow under the
`additional_data` parameter.
description: The details of the line item to add.
x-codeSamples:
- lang: JavaScript
label: JS SDK

View File

@@ -51,7 +51,29 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/StoreUpdateCartLineItem.yaml
allOf:
- type: object
description: The details to update in the line item.
required:
- quantity
properties:
quantity:
type: number
title: quantity
description: The item's quantity.
metadata:
type: object
description: The item's metadata, can hold custom key-value pairs.
- type: object
description: The details to update in the line item.
properties:
additional_data:
type: object
description: >-
Pass additional custom data to the API route. This data is
passed to the underlying workflow under the
`additional_data` parameter.
description: The details to update in the line item.
x-codeSamples:
- lang: JavaScript
label: JS SDK

View File

@@ -47,7 +47,37 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/StoreAddCartShippingMethods.yaml
allOf:
- type: object
description: The shipping method's details.
required:
- option_id
properties:
option_id:
type: string
title: option_id
description: >-
The ID of the shipping option to create the shipping method
from.
data:
type: object
description: >-
Any additional data relevant for the third-party fulfillment
provider to process the shipment.
externalDocs:
url: >-
https://docs.medusajs.com/resources/storefront-development/checkout/shipping#data-request-body-parameter
description: Learn more about the data parameter.
- type: object
description: The shipping method's details.
properties:
additional_data:
type: object
description: >-
Pass additional custom data to the API route. This data is
passed to the underlying workflow under the
`additional_data` parameter.
description: The shipping method's details.
x-codeSamples:
- lang: JavaScript
label: JS SDK