chore(docs): Generated API Reference (#5431)

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]andshahednasser authored and GitHub committed 2023-10-20 14:13:44 +03:00
1 parent 9dcd62c731
commit da05999f13
20 files changed
+36 -32

No files matched your search

@@ -17,7 +17,7 @@ properties:
images: images:
description: >- description: >-
An array of images of the Product. Each value in the array is a URL to the An array of images of the Product. Each value in the array is a URL to the
image. You can use the upload endpoints to upload the image and obtain a image. You can use the upload API Routes to upload the image and obtain a
URL. URL.
type: array type: array
items: items:
@@ -25,7 +25,8 @@ properties:
thumbnail: thumbnail:
description: >- description: >-
The thumbnail to use for the Product. The value is a URL to the thumbnail. The thumbnail to use for the Product. The value is a URL to the thumbnail.
You can use the upload endpoints to upload the thumbnail and obtain a URL. You can use the upload API Routes to upload the thumbnail and obtain a
URL.
type: string type: string
handle: handle:
description: >- description: >-
@@ -27,7 +27,7 @@ properties:
images: images:
description: >- description: >-
An array of images of the Product. Each value in the array is a URL to the An array of images of the Product. Each value in the array is a URL to the
image. You can use the upload endpoints to upload the image and obtain a image. You can use the upload API Routes to upload the image and obtain a
URL. URL.
type: array type: array
items: items:
@@ -35,7 +35,8 @@ properties:
thumbnail: thumbnail:
description: >- description: >-
The thumbnail to use for the Product. The value is a URL to the thumbnail. The thumbnail to use for the Product. The value is a URL to the thumbnail.
You can use the upload endpoints to upload the thumbnail and obtain a URL. You can use the upload API Routes to upload the thumbnail and obtain a
URL.
type: string type: string
handle: handle:
description: >- description: >-
@@ -13,8 +13,8 @@ tags:
that, they can create an Oauth provider within the plugin that handles the that, they can create an Oauth provider within the plugin that handles the
authentication. authentication.
The Apps Oauth API Routes allows admins to manage and generate token for an The Apps Oauth API Routes allows admins to manage and generate token for
app using its oauth provider. an app using its oauth provider.
- name: Auth - name: Auth
description: > description: >
Authentication API Routes allow admin users to manage their session, such Authentication API Routes allow admin users to manage their session, such
@@ -41,8 +41,8 @@ tags:
A store can use unlimited currencies, and each region must be associated A store can use unlimited currencies, and each region must be associated
with at least one currency. with at least one currency.
Currencies are defined within the Medusa backend. Currency API Routes allow Currencies are defined within the Medusa backend. Currency API Routes
admins to list and update currencies. allow admins to list and update currencies.
externalDocs: externalDocs:
description: How to manage currencies description: How to manage currencies
url: >- url: >-
@@ -93,7 +93,7 @@ delete:
Delete the current session for the logged in user. This will only work if Delete the current session for the logged in user. This will only work if
you're using Cookie session for authentication. If the API token is still you're using Cookie session for authentication. If the API token is still
passed in the header, the user is still authorized to perform admin passed in the header, the user is still authorized to perform admin
functionalities in other endpoints. functionalities in other API Routes.
x-codegen: x-codegen:
method: deleteSession method: deleteSession
x-codeSamples: x-codeSamples:
@@ -270,7 +270,7 @@ post:
description: >- description: >-
Create a Batch Job to be executed asynchronously in the Medusa backend. If Create a Batch Job to be executed asynchronously in the Medusa backend. If
`dry_run` is set to `true`, the batch job will not be executed until the it `dry_run` is set to `true`, the batch job will not be executed until the it
is confirmed, which can be done using the Confirm Batch Job endpoint. is confirmed, which can be done using the Confirm Batch Job API Route.
externalDocs: externalDocs:
description: How to create a batch job description: How to create a batch job
url: https://docs.medusajs.com/development/batch-jobs/create#create-batch-job url: https://docs.medusajs.com/development/batch-jobs/create#create-batch-job
@@ -3,7 +3,7 @@ post:
summary: Confirm a Batch Job summary: Confirm a Batch Job
description: >- description: >-
When a batch job is created, it is not executed automatically if `dry_run` When a batch job is created, it is not executed automatically if `dry_run`
is set to `true`. This endpoint confirms that the batch job should be is set to `true`. This API Route confirms that the batch job should be
executed. executed.
x-authenticated: true x-authenticated: true
parameters: parameters:
@@ -281,7 +281,7 @@ post:
summary: Create a Product summary: Create a Product
x-authenticated: true x-authenticated: true
description: >- description: >-
Create a new Product. This endpoint can also be used to create a gift card Create a new Product. This API Route can also be used to create a gift card
if the `is_giftcard` field is set to `true`. if the `is_giftcard` field is set to `true`.
requestBody: requestBody:
content: content:
@@ -3,5 +3,7 @@ required:
- token - token
properties: properties:
token: token:
description: The claim token generated by previous request to the Claim Order endpoint. description: >-
The claim token generated by previous request to the Claim Order API
Route.
type: string type: string
@@ -24,7 +24,7 @@ properties:
reason_id: reason_id:
description: >- description: >-
The ID of the return reason. Return reasons can be retrieved from The ID of the return reason. Return reasons can be retrieved from
the List Return Reasons endpoint. the List Return Reasons API Route.
type: string type: string
note: note:
description: A note to add to the item returned. description: A note to add to the item returned.
@@ -25,7 +25,7 @@ properties:
reason_id: reason_id:
description: >- description: >-
The ID of the reason of this return. Return reasons can be retrieved The ID of the reason of this return. Return reasons can be retrieved
from the List Return Reasons endpoint. from the List Return Reasons API Route.
type: string type: string
note: note:
description: The note to add to the item being swapped. description: The note to add to the item being swapped.
@@ -49,8 +49,8 @@ tags:
description: > description: >
Orders are purchases made by customers, typically through a storefront. Orders are purchases made by customers, typically through a storefront.
Orders are placed and created using the Carts API Routes. The Orders Orders are placed and created using the Carts API Routes. The Orders API
API Routes allow retrieving and claiming orders. Routes allow retrieving and claiming orders.
externalDocs: externalDocs:
description: How to retrieve order details in a storefront description: How to retrieve order details in a storefront
url: >- url: >-
@@ -75,8 +75,8 @@ tags:
cards](https://docs.medusajs.com/modules/gift-cards/storefront/use-gift-cards) cards](https://docs.medusajs.com/modules/gift-cards/storefront/use-gift-cards)
in a store. in a store.
Using these API Routes, you can filter products by categories, collections, Using these API Routes, you can filter products by categories,
sales channels, and more. collections, sales channels, and more.
externalDocs: externalDocs:
description: How to show products in a storefront description: How to show products in a storefront
url: https://docs.medusajs.com/modules/products/storefront/show-products url: https://docs.medusajs.com/modules/products/storefront/show-products
@@ -100,8 +100,8 @@ tags:
such as marketing or discount purposes. For example, you can create a such as marketing or discount purposes. For example, you can create a
Summer Collection. Summer Collection.
Using these API Routes, you can list or retrieve a collection's details and Using these API Routes, you can list or retrieve a collection's details
products. and products.
- name: Product Tags - name: Product Tags
description: | description: |
Product tags are string values that can be used to filter products by. Product tags are string values that can be used to filter products by.
@@ -2,7 +2,7 @@ get:
operationId: GetCustomersCustomerPaymentMethods operationId: GetCustomersCustomerPaymentMethods
summary: Get Saved Payment Methods summary: Get Saved Payment Methods
description: >- description: >-
Retrieve the logged-in customer's saved payment methods. This endpoint only Retrieve the logged-in customer's saved payment methods. This API Route only
works with payment providers created with the deprecated Payment Service works with payment providers created with the deprecated Payment Service
interface. The payment methods are saved using the Payment Service's interface. The payment methods are saved using the Payment Service's
third-party service, and not on the Medusa backend. So, they're retrieved third-party service, and not on the Medusa backend. So, they're retrieved
@@ -3,7 +3,7 @@ post:
summary: Reset Password summary: Reset Password
description: >- description: >-
Reset a Customer's password using a password token created by a previous Reset a Customer's password using a password token created by a previous
request to the Request Password Reset endpoint. If the password token request to the Request Password Reset API Route. If the password token
expired, you must create a new one. expired, you must create a new one.
externalDocs: externalDocs:
description: How to reset password description: How to reset password
@@ -2,8 +2,8 @@ post:
operationId: PostCustomersCustomerPasswordToken operationId: PostCustomersCustomerPasswordToken
summary: Request Password Reset summary: Request Password Reset
description: >- description: >-
Create a reset password token to be used in a subsequent Reset Password Create a reset password token to be used in a subsequent Reset Password API
endpoint. This emits the event `customer.password_reset`. If a notification Route. This emits the event `customer.password_reset`. If a notification
provider is installed in the Medusa backend and is configured to handle this provider is installed in the Medusa backend and is configured to handle this
event, a notification to the customer, such as an email, may be sent with event, a notification to the customer, such as an email, may be sent with
reset instructions. reset instructions.
@@ -4,7 +4,7 @@ post:
description: >- description: >-
Complete an Order Edit and reflect its changes on the original order. Any Complete an Order Edit and reflect its changes on the original order. Any
additional payment required must be authorized first using the Payment additional payment required must be authorized first using the Payment
Collection endpoints. Collection API Routes.
externalDocs: externalDocs:
description: How to handle order edits in a storefront description: How to handle order edits in a storefront
url: https://docs.medusajs.com/modules/orders/storefront/handle-order-edits url: https://docs.medusajs.com/modules/orders/storefront/handle-order-edits
@@ -4,7 +4,7 @@ post:
description: >- description: >-
Allow the logged-in customer to claim ownership of one or more orders. This Allow the logged-in customer to claim ownership of one or more orders. This
generates a token that can be used later on to verify the claim using the generates a token that can be used later on to verify the claim using the
endpoint Verify Order Claim. This also emits the event Verify Order Claim API Route. This also emits the event
`order-update-token.created`. So, if you have a notification provider `order-update-token.created`. So, if you have a notification provider
installed that handles this event and sends the customer a notification, installed that handles this event and sends the customer a notification,
such as an email, the customer should receive instructions on how to such as an email, the customer should receive instructions on how to
@@ -4,7 +4,7 @@ get:
description: >- description: >-
Retrieve a list of product categories. The product categories can be Retrieve a list of product categories. The product categories can be
filtered by fields such as `handle` or `q`. The product categories can also filtered by fields such as `handle` or `q`. The product categories can also
be paginated. This endpoint can also be used to retrieve a product category be paginated. This API Route can also be used to retrieve a product category
by its handle. by its handle.
x-featureFlag: product_categories x-featureFlag: product_categories
externalDocs: externalDocs:
@@ -5,7 +5,7 @@ get:
Retrieves a list of products. The products can be filtered by fields such as Retrieves a list of products. The products can be filtered by fields such as
`id` or `q`. The products can also be sorted or paginated. `id` or `q`. The products can also be sorted or paginated.
This endpoint can also be used to retrieve a product by its handle. This API Route can also be used to retrieve a product by its handle.
For accurate and correct pricing of the products based on the customer's For accurate and correct pricing of the products based on the customer's
@@ -3,7 +3,7 @@ get:
summary: List Regions summary: List Regions
description: >- description: >-
Retrieve a list of regions. The regions can be filtered by fields such as Retrieve a list of regions. The regions can be filtered by fields such as
`created_at`. The regions can also be paginated. This endpoint is useful to `created_at`. The regions can also be paginated. This API Route is useful to
show the customer all available regions to choose from. show the customer all available regions to choose from.
externalDocs: externalDocs:
description: How to use regions in a storefront description: How to use regions in a storefront
@@ -6,8 +6,8 @@ post:
with the swap. If a return shipping option is specified, the return will with the swap. If a return shipping option is specified, the return will
automatically be fulfilled. automatically be fulfilled.
To complete the swap, you must use the Complete Cart endpoint passing it the To complete the swap, you must use the Complete Cart API Route passing it
ID of the swap's cart. the ID of the swap's cart.
An idempotency key will be generated if none is provided in the header An idempotency key will be generated if none is provided in the header