Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Updated Open API docs

Damian Legawiecf7e7f65739c7
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 45d6870a9b..190012d09d 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -52,7 +52,7 @@ paths:
post:
description: >-
Creates a new account
-
+
This endpoint requires [Spree Auth Devise](https://github.com/spree/spree_auth_devise) gem installed
tags:
- Account
@@ -92,7 +92,7 @@ paths:
patch:
description: >-
Updates user account
-
+
This endpoint requires [Spree Auth Devise](https://github.com/spree/spree_auth_devise) gem installed
tags:
- Account
@@ -2287,6 +2287,11 @@ components:
$ref: '#/components/schemas/ShipmentAttributes'
relationships:
properties:
+ stock_location:
+ type: object
+ properties:
+ data:
+ $ref: '#/components/schemas/Relation'
shipping_rates:
properties:
data:
@@ -2342,6 +2347,7 @@ components:
items:
oneOf:
- $ref: '#/components/schemas/ShippingRate'
+ - $ref: '#/components/schemas/StockLocation'
EstimateShippingRatesList:
required:
- data
@@ -2396,6 +2402,20 @@ components:
type: integer
example: 1
description: 'ID of a Shipping Method. You will need this for the Checkout Update action'
+ StockLocation:
+ properties:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: 'stock_location'
+ attributes:
+ type: object
+ properties:
+ name:
+ type: string
+ example: 'Main Warehouse'
Account:
required:
- data