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

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-09-15 16:07:31 +03:00
committed by GitHub
parent 7c6521101e
commit 9ead8aedd1
38 changed files with 1401 additions and 21 deletions

View File

@@ -0,0 +1,53 @@
get:
operationId: GetCurrencies
summary: List Currency
description: Retrieves a list of Currency
x-authenticated: true
parameters:
- in: query
name: code
description: Code of the currency to search for.
schema:
type: string
- in: query
name: includes_tax
description: Search for tax inclusive currencies.
schema:
type: boolean
- in: query
name: order
description: to retrieve products in.
schema:
type: string
- in: query
name: offset
description: How many products to skip in the result.
schema:
type: string
- in: query
name: limit
description: Limit the number of products returned.
schema:
type: string
tags:
- Currency
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
count:
description: The number of Currency.
type: integer
offset:
description: The offset of the Currency query.
type: integer
limit:
description: The limit of the currency query.
type: integer
currencies:
type: array
items:
$ref: ../components/schemas/currency.yaml

View File

@@ -0,0 +1,31 @@
post:
operationId: PostCurrenciesCurrency
summary: Update a Currency
description: Update a Currency
x-authenticated: true
parameters:
- in: path
name: code
required: true
description: The code of the Currency.
schema:
type: string
requestBody:
content:
application/json:
schema:
properties:
includes_tax:
type: boolean
description: '[EXPERIMENTAL] Tax included in prices of currency.'
tags:
- Currency
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
currency:
$ref: ../components/schemas/currency.yaml

View File

@@ -82,6 +82,9 @@ post:
id:
description: The ID of a customer group
type: string
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of price list'
type: boolean
x-codeSamples:
- lang: JavaScript
label: JS Client

View File

@@ -190,6 +190,9 @@ post:
id:
description: The ID of a customer group
type: string
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of price list'
type: boolean
x-codeSamples:
- lang: JavaScript
label: JS Client

View File

@@ -53,6 +53,9 @@ post:
type: array
items:
type: string
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of region'
type: boolean
x-codeSamples:
- lang: JavaScript
label: JS Client

View File

@@ -149,6 +149,9 @@ post:
tax_rate:
description: The tax rate to use on Orders in the Region.
type: number
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of region'
type: boolean
payment_providers:
description: >-
A list of Payment Provider IDs that should be enabled for the

View File

@@ -74,6 +74,9 @@ post:
metadata:
description: An optional set of key-value pairs with additional information.
type: object
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of shipping option'
type: boolean
x-codeSamples:
- lang: JavaScript
label: JS Client

View File

@@ -154,6 +154,9 @@ post:
amount:
description: The amount to compare with.
type: integer
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of shipping option'
type: boolean
x-codeSamples:
- lang: JavaScript
label: JS Client

View File

@@ -1,7 +1,9 @@
post:
operationId: PostUploads
summary: Upload a file
description: Uploads a file to the specific fileservice that is installed in Medusa.
summary: Upload files
description: >-
Uploads at least one file to the specific fileservice that is installed in
Medusa.
x-authenticated: true
requestBody:
content:

View File

@@ -23,7 +23,7 @@ delete:
- api_token: []
- cookie_auth: []
tags:
- Users
- User
responses:
'200':
description: OK