chore(docs): Updated API Reference (automated) (#11719)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
Shahed Nasser
parent
8a36bd4034
commit
6294a71296
@@ -389,11 +389,11 @@ paths:
|
||||
operationId: PostActor_typeAuth_providerUpdate
|
||||
summary: Reset a Customer's Password
|
||||
x-sidebar-summary: Reset Password
|
||||
description: Reset a customer's password using a reset-password token generated with the [Generate Reset Password Token API route](https://docs.medusajs.com/api/store#auth_postactor_typeauth_providerresetpassword).
|
||||
description: Reset a customer's password using a reset-password token generated with the [Generate Reset Password Token API route](https://docs.medusajs.com/api/store#auth_postactor_typeauth_providerresetpassword). You pass the token as a bearer token in the request's Authorization header.
|
||||
externalDocs:
|
||||
url: https://docs.medusajs.com/v2/resources/storefront-development/customers/reset-password#2-reset-password-page
|
||||
description: 'Storefront development: How to create the reset password page.'
|
||||
x-authenticated: false
|
||||
x-authenticated: true
|
||||
parameters:
|
||||
- name: auth_provider
|
||||
in: path
|
||||
@@ -402,12 +402,6 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
example: emailpass
|
||||
- name: token
|
||||
in: query
|
||||
description: The reset password token received using the Get Reset Password API route.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
@@ -422,12 +416,15 @@ paths:
|
||||
- lang: Shell
|
||||
label: cURL
|
||||
source: |-
|
||||
curl -X POST '{backend_url}/auth/customer/emailpass/update?token=123' \
|
||||
curl -X POST '{backend_url}/auth/customer/emailpass/update' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: Bearer {token}' \
|
||||
--data-raw '{
|
||||
"email": "customer@gmail.com",
|
||||
"password": "supersecret"
|
||||
}'
|
||||
security:
|
||||
- reset_password: []
|
||||
tags:
|
||||
- Auth
|
||||
responses:
|
||||
@@ -19595,6 +19592,8 @@ components:
|
||||
- id
|
||||
- calculated_amount
|
||||
- original_amount
|
||||
- original_amount_with_tax
|
||||
- original_amount_without_tax
|
||||
- currency_code
|
||||
properties:
|
||||
id:
|
||||
@@ -19644,6 +19643,14 @@ components:
|
||||
original_price:
|
||||
type: object
|
||||
description: The original price's details.
|
||||
original_amount_with_tax:
|
||||
type: number
|
||||
title: original_amount_with_tax
|
||||
description: The amount of the original price with taxes applied.
|
||||
original_amount_without_tax:
|
||||
type: number
|
||||
title: original_amount_without_tax
|
||||
description: The amount of the original price without taxes.
|
||||
BaseCapture:
|
||||
type: object
|
||||
description: The details of a captured payment.
|
||||
@@ -23938,6 +23945,7 @@ components:
|
||||
- id
|
||||
- order_id
|
||||
- order
|
||||
- amount
|
||||
- reference
|
||||
- reference_id
|
||||
- metadata
|
||||
@@ -23975,6 +23983,10 @@ components:
|
||||
format: date-time
|
||||
title: updated_at
|
||||
description: The date the credit line was updated.
|
||||
amount:
|
||||
type: number
|
||||
title: amount
|
||||
description: The credit line's amount.
|
||||
OrderExchange:
|
||||
type: object
|
||||
description: The order change's exchange.
|
||||
@@ -24527,6 +24539,10 @@ components:
|
||||
format: date-time
|
||||
title: updated_at
|
||||
description: The date the item was updated.
|
||||
damaged_quantity:
|
||||
type: number
|
||||
title: damaged_quantity
|
||||
description: The item's damaged quantity.
|
||||
OrderShippingMethod:
|
||||
type: object
|
||||
description: The shipping method's details.
|
||||
@@ -25027,6 +25043,8 @@ components:
|
||||
- id
|
||||
- calculated_amount
|
||||
- original_amount
|
||||
- original_amount_with_tax
|
||||
- original_amount_without_tax
|
||||
- currency_code
|
||||
properties:
|
||||
id:
|
||||
@@ -25133,6 +25151,14 @@ components:
|
||||
type: number
|
||||
title: max_quantity
|
||||
description: The maximum quantity required in the cart for the price to apply.
|
||||
original_amount_with_tax:
|
||||
type: number
|
||||
title: original_amount_with_tax
|
||||
description: The original amount with taxes applied.
|
||||
original_amount_without_tax:
|
||||
type: number
|
||||
title: original_amount_without_tax
|
||||
description: The original amount without taxes.
|
||||
StoreCart:
|
||||
type: object
|
||||
description: The cart's details.
|
||||
@@ -34445,3 +34471,8 @@ components:
|
||||
x-displayName: Cookie Session ID
|
||||
in: cookie
|
||||
name: connect.sid
|
||||
reset_password:
|
||||
type: http
|
||||
x-displayName: Reset Password Token
|
||||
scheme: bearer
|
||||
x-is-auth: false
|
||||
|
||||
Reference in New Issue
Block a user