Skip to content

Commit e330518

Browse files
chore(docs): Generated API Reference (medusajs#3308)
Co-authored-by: olivermrbl <[email protected]>
1 parent 3f5b7fb commit e330518

31 files changed

+11430
-10625
lines changed

docs/api/admin-spec3.json

+5,277-5,013
Large diffs are not rendered by default.

docs/api/admin-spec3.yaml

+4,352-4,094
Large diffs are not rendered by default.

docs/api/admin/components/schemas/Order.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ properties:
303303
description: The total of gift cards with taxes
304304
type: integer
305305
example: 0
306+
returnable_items:
307+
description: >-
308+
The items that are returnable as part of the order, order swaps or order
309+
claims
310+
type: array
311+
items:
312+
$ref: ./LineItem.yaml
306313
created_at:
307314
description: The date with timezone at which the resource was created.
308315
type: string

docs/api/admin/openapi.yaml

+40-40
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,6 @@ paths:
197197
$ref: paths/currencies.yaml
198198
/currencies/{code}:
199199
$ref: paths/currencies_{code}.yaml
200-
/customers:
201-
$ref: paths/customers.yaml
202-
/customers/{id}:
203-
$ref: paths/customers_{id}.yaml
204200
/customer-groups/{id}/customers/batch:
205201
$ref: paths/customer-groups_{id}_customers_batch.yaml
206202
/customer-groups:
@@ -209,6 +205,10 @@ paths:
209205
$ref: paths/customer-groups_{id}.yaml
210206
/customer-groups/{id}/customers:
211207
$ref: paths/customer-groups_{id}_customers.yaml
208+
/customers:
209+
$ref: paths/customers.yaml
210+
/customers/{id}:
211+
$ref: paths/customers_{id}.yaml
212212
/discounts/{id}/regions/{region_id}:
213213
$ref: paths/discounts_{id}_regions_{region_id}.yaml
214214
/discounts/{discount_id}/conditions/{condition_id}/batch:
@@ -243,14 +243,6 @@ paths:
243243
$ref: paths/gift-cards.yaml
244244
/gift-cards/{id}:
245245
$ref: paths/gift-cards_{id}.yaml
246-
/invites/accept:
247-
$ref: paths/invites_accept.yaml
248-
/invites:
249-
$ref: paths/invites.yaml
250-
/invites/{invite_id}:
251-
$ref: paths/invites_{invite_id}.yaml
252-
/invites/{invite_id}/resend:
253-
$ref: paths/invites_{invite_id}_resend.yaml
254246
/inventory-items/{id}/location-levels:
255247
$ref: paths/inventory-items_{id}_location-levels.yaml
256248
/inventory-items/{id}:
@@ -259,14 +251,22 @@ paths:
259251
$ref: paths/inventory-items_{id}_location-levels_{location_id}.yaml
260252
/inventory-items:
261253
$ref: paths/inventory-items.yaml
262-
/notifications:
263-
$ref: paths/notifications.yaml
264-
/notifications/{id}/resend:
265-
$ref: paths/notifications_{id}_resend.yaml
254+
/invites/accept:
255+
$ref: paths/invites_accept.yaml
256+
/invites:
257+
$ref: paths/invites.yaml
258+
/invites/{invite_id}:
259+
$ref: paths/invites_{invite_id}.yaml
260+
/invites/{invite_id}/resend:
261+
$ref: paths/invites_{invite_id}_resend.yaml
266262
/notes:
267263
$ref: paths/notes.yaml
268264
/notes/{id}:
269265
$ref: paths/notes_{id}.yaml
266+
/notifications:
267+
$ref: paths/notifications.yaml
268+
/notifications/{id}/resend:
269+
$ref: paths/notifications_{id}_resend.yaml
270270
/order-edits/{id}/items:
271271
$ref: paths/order-edits_{id}_items.yaml
272272
/order-edits/{id}/cancel:
@@ -283,10 +283,6 @@ paths:
283283
$ref: paths/order-edits_{id}.yaml
284284
/order-edits/{id}/request:
285285
$ref: paths/order-edits_{id}_request.yaml
286-
/payment-collections/{id}:
287-
$ref: paths/payment-collections_{id}.yaml
288-
/payment-collections/{id}/authorize:
289-
$ref: paths/payment-collections_{id}_authorize.yaml
290286
/orders/{id}/shipping-methods:
291287
$ref: paths/orders_{id}_shipping-methods.yaml
292288
/orders/{id}/archive:
@@ -341,6 +337,10 @@ paths:
341337
$ref: paths/orders_{id}_return.yaml
342338
/order/{id}/claims/{claim_id}:
343339
$ref: paths/order_{id}_claims_{claim_id}.yaml
340+
/payment-collections/{id}:
341+
$ref: paths/payment-collections_{id}.yaml
342+
/payment-collections/{id}/authorize:
343+
$ref: paths/payment-collections_{id}_authorize.yaml
344344
/payments/{id}/capture:
345345
$ref: paths/payments_{id}_capture.yaml
346346
/payments/{id}:
@@ -359,6 +359,12 @@ paths:
359359
$ref: paths/price-lists_{id}_variants_{variant_id}_prices.yaml
360360
/price-lists/{id}/products:
361361
$ref: paths/price-lists_{id}_products.yaml
362+
/product-categories/{id}/products/batch:
363+
$ref: paths/product-categories_{id}_products_batch.yaml
364+
/product-categories:
365+
$ref: paths/product-categories.yaml
366+
/product-categories/{id}:
367+
$ref: paths/product-categories_{id}.yaml
362368
/product-tags:
363369
$ref: paths/product-tags.yaml
364370
/product-types:
@@ -381,12 +387,6 @@ paths:
381387
$ref: paths/products_types.yaml
382388
/products/{id}/metadata:
383389
$ref: paths/products_{id}_metadata.yaml
384-
/product-categories/{id}/products/batch:
385-
$ref: paths/product-categories_{id}_products_batch.yaml
386-
/product-categories:
387-
$ref: paths/product-categories.yaml
388-
/product-categories/{id}:
389-
$ref: paths/product-categories_{id}.yaml
390390
/publishable-api-keys/{id}/sales-channels/batch:
391391
$ref: paths/publishable-api-keys_{id}_sales-channels_batch.yaml
392392
/publishable-api-keys:
@@ -425,6 +425,12 @@ paths:
425425
$ref: paths/return-reasons.yaml
426426
/return-reasons/{id}:
427427
$ref: paths/return-reasons_{id}.yaml
428+
/returns/{id}/cancel:
429+
$ref: paths/returns_{id}_cancel.yaml
430+
/returns:
431+
$ref: paths/returns.yaml
432+
/returns/{id}/receive:
433+
$ref: paths/returns_{id}_receive.yaml
428434
/sales-channels/{id}/products/batch:
429435
$ref: paths/sales-channels_{id}_products_batch.yaml
430436
/sales-channels/{id}/stock-locations:
@@ -433,12 +439,6 @@ paths:
433439
$ref: paths/sales-channels.yaml
434440
/sales-channels/{id}:
435441
$ref: paths/sales-channels_{id}.yaml
436-
/returns/{id}/cancel:
437-
$ref: paths/returns_{id}_cancel.yaml
438-
/returns:
439-
$ref: paths/returns.yaml
440-
/returns/{id}/receive:
441-
$ref: paths/returns_{id}_receive.yaml
442442
/shipping-options:
443443
$ref: paths/shipping-options.yaml
444444
/shipping-options/{id}:
@@ -451,6 +451,14 @@ paths:
451451
$ref: paths/stock-locations.yaml
452452
/stock-locations/{id}:
453453
$ref: paths/stock-locations_{id}.yaml
454+
/store/currencies/{code}:
455+
$ref: paths/store_currencies_{code}.yaml
456+
/store:
457+
$ref: paths/store.yaml
458+
/store/payment-providers:
459+
$ref: paths/store_payment-providers.yaml
460+
/store/tax-providers:
461+
$ref: paths/store_tax-providers.yaml
454462
/swaps/{id}:
455463
$ref: paths/swaps_{id}.yaml
456464
/swaps:
@@ -465,14 +473,6 @@ paths:
465473
$ref: paths/tax-rates.yaml
466474
/tax-rates/{id}:
467475
$ref: paths/tax-rates_{id}.yaml
468-
/store/currencies/{code}:
469-
$ref: paths/store_currencies_{code}.yaml
470-
/store:
471-
$ref: paths/store.yaml
472-
/store/payment-providers:
473-
$ref: paths/store_payment-providers.yaml
474-
/store/tax-providers:
475-
$ref: paths/store_tax-providers.yaml
476476
/uploads/protected:
477477
$ref: paths/uploads_protected.yaml
478478
/uploads:

docs/api/admin/paths/order_{id}_claims.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,24 @@ post:
1010
description: The ID of the Order.
1111
schema:
1212
type: string
13+
- in: query
14+
name: expand
15+
description: Comma separated list of relations to include in the result.
16+
schema:
17+
type: string
18+
- in: query
19+
name: fields
20+
description: Comma separated list of fields to include in the result.
21+
schema:
22+
type: string
1323
requestBody:
1424
content:
1525
application/json:
1626
schema:
1727
$ref: ../components/schemas/AdminPostOrdersOrderClaimsReq.yaml
1828
x-codegen:
1929
method: createClaim
30+
params: AdminPostOrdersOrderClaimsParams
2031
x-codeSamples:
2132
- lang: JavaScript
2233
label: JS Client

docs/api/admin/paths/order_{id}_claims_{claim_id}.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,24 @@ post:
1616
description: The ID of the Claim.
1717
schema:
1818
type: string
19+
- in: query
20+
name: expand
21+
description: Comma separated list of relations to include in the result.
22+
schema:
23+
type: string
24+
- in: query
25+
name: fields
26+
description: Comma separated list of fields to include in the result.
27+
schema:
28+
type: string
1929
requestBody:
2030
content:
2131
application/json:
2232
schema:
2333
$ref: ../components/schemas/AdminPostOrdersOrderClaimsClaimReq.yaml
2434
x-codegen:
2535
method: updateClaim
36+
params: AdminPostOrdersOrderClaimsClaimParams
2637
x-codeSamples:
2738
- lang: JavaScript
2839
label: JS Client

docs/api/admin/paths/order_{id}_swaps.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,28 @@ post:
1212
description: The ID of the Order.
1313
schema:
1414
type: string
15+
- in: query
16+
name: expand
17+
description: >-
18+
(Comma separated) Which fields should be expanded the order of the
19+
result.
20+
schema:
21+
type: string
22+
- in: query
23+
name: fields
24+
description: >-
25+
(Comma separated) Which fields should be included the order of the
26+
result.
27+
schema:
28+
type: string
1529
requestBody:
1630
content:
1731
application/json:
1832
schema:
1933
$ref: ../components/schemas/AdminPostOrdersOrderSwapsReq.yaml
2034
x-codegen:
2135
method: createSwap
36+
queryParams: AdminPostOrdersOrderSwapsParams
2237
x-codeSamples:
2338
- lang: JavaScript
2439
label: JS Client

docs/api/admin/paths/orders_{id}.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,24 @@ post:
6868
description: The ID of the Order.
6969
schema:
7070
type: string
71+
- in: query
72+
name: expand
73+
description: Comma separated list of relations to include in the result.
74+
schema:
75+
type: string
76+
- in: query
77+
name: fields
78+
description: Comma separated list of fields to include in the result.
79+
schema:
80+
type: string
7181
requestBody:
7282
content:
7383
application/json:
7484
schema:
7585
$ref: ../components/schemas/AdminPostOrdersOrderReq.yaml
7686
x-codegen:
7787
method: update
88+
params: AdminPostOrdersOrderParams
7889
x-codeSamples:
7990
- lang: JavaScript
8091
label: JS Client

docs/api/admin/paths/orders_{id}_archive.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@ post:
1010
description: The ID of the Order.
1111
schema:
1212
type: string
13+
- in: query
14+
name: expand
15+
description: Comma separated list of relations to include in the result.
16+
schema:
17+
type: string
18+
- in: query
19+
name: fields
20+
description: Comma separated list of fields to include in the result.
21+
schema:
22+
type: string
1323
x-codegen:
1424
method: archive
25+
params: AdminPostOrdersOrderArchiveParams
1526
x-codeSamples:
1627
- lang: JavaScript
1728
label: JS Client

docs/api/admin/paths/orders_{id}_cancel.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,19 @@ post:
1313
description: The ID of the Order.
1414
schema:
1515
type: string
16+
- in: query
17+
name: expand
18+
description: Comma separated list of relations to include in the result.
19+
schema:
20+
type: string
21+
- in: query
22+
name: fields
23+
description: Comma separated list of fields to include in the result.
24+
schema:
25+
type: string
1626
x-codegen:
1727
method: cancel
28+
params: AdminPostOrdersOrderCancel
1829
x-codeSamples:
1930
- lang: JavaScript
2031
label: JS Client

docs/api/admin/paths/orders_{id}_capture.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@ post:
1010
description: The ID of the Order.
1111
schema:
1212
type: string
13+
- in: query
14+
name: expand
15+
description: Comma separated list of relations to include in the result.
16+
schema:
17+
type: string
18+
- in: query
19+
name: fields
20+
description: Comma separated list of fields to include in the result.
21+
schema:
22+
type: string
1323
x-codegen:
1424
method: capturePayment
25+
params: AdminPostOrdersOrderCaptureParams
1526
x-codeSamples:
1627
- lang: JavaScript
1728
label: JS Client

docs/api/admin/paths/orders_{id}_claims_{claim_id}_cancel.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ post:
1616
description: The ID of the Claim.
1717
schema:
1818
type: string
19+
- in: query
20+
name: expand
21+
description: Comma separated list of relations to include in the result.
22+
schema:
23+
type: string
24+
- in: query
25+
name: fields
26+
description: Comma separated list of fields to include in the result.
27+
schema:
28+
type: string
1929
x-codegen:
2030
method: cancelClaim
31+
params: AdminPostOrdersClaimCancel
2132
x-codeSamples:
2233
- lang: JavaScript
2334
label: JS Client

docs/api/admin/paths/orders_{id}_claims_{claim_id}_fulfillments.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ post:
1616
description: The ID of the Claim.
1717
schema:
1818
type: string
19+
- in: query
20+
name: expand
21+
description: Comma separated list of relations to include in the result.
22+
schema:
23+
type: string
24+
- in: query
25+
name: fields
26+
description: Comma separated list of fields to include in the result.
27+
schema:
28+
type: string
1929
requestBody:
2030
content:
2131
application/json:
@@ -24,6 +34,7 @@ post:
2434
../components/schemas/AdminPostOrdersOrderClaimsClaimFulfillmentsReq.yaml
2535
x-codegen:
2636
method: fulfillClaim
37+
params: AdminPostOrdersOrderClaimsClaimFulfillmentsReq
2738
x-codeSamples:
2839
- lang: JavaScript
2940
label: JS Client

0 commit comments

Comments
 (0)