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.

Add missing brackets in API docs (#11368)

Virginia Nguyen748351eb98d5
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 7a850802e8..804cb7de2d 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -4060,39 +4060,41 @@ paths:
### Update the Customer information
- ```texttext
+ ```request
PATCH /checkout
```
```json
- "order": {
- "email": "[email protected]",
- "bill_address_attributes": {
- "firstname": "John",
- "lastname": "Snow",
- "address1": "7735 Old Georgetown Road",
- "city": "Bethesda",
- "phone": "3014445002",
- "zipcode": "20814",
- "state_name": "MD",
- "country_iso": "US"
- },
- "ship_address_attributes": {
- "firstname": "John",
- "lastname": "Snow",
- "address1": "7735 Old Georgetown Road",
- "city": "Bethesda",
- "phone": "3014445002",
- "zipcode": "20814",
- "state_name": "MD",
- "country_iso": "US"
+ {
+ "order": {
+ "email": "[email protected]",
+ "bill_address_attributes": {
+ "firstname": "John",
+ "lastname": "Snow",
+ "address1": "7735 Old Georgetown Road",
+ "city": "Bethesda",
+ "phone": "3014445002",
+ "zipcode": "20814",
+ "state_name": "MD",
+ "country_iso": "US"
+ },
+ "ship_address_attributes": {
+ "firstname": "John",
+ "lastname": "Snow",
+ "address1": "7735 Old Georgetown Road",
+ "city": "Bethesda",
+ "phone": "3014445002",
+ "zipcode": "20814",
+ "state_name": "MD",
+ "country_iso": "US"
+ }
}
}
```
### Fetch Shipping Rates
- ```text
+ ```request
GET /checkout/shipping_rates
```
@@ -4104,7 +4106,7 @@ paths:
### Select shipping method(s)
- ```text
+ ```request
PATCH /checkout
```
@@ -4127,7 +4129,7 @@ paths:
### Add Payment Source(s)
- ```text
+ ```request
PATCH /checkout
```
@@ -4154,7 +4156,7 @@ paths:
### Complete checkout
- ```text
+ ```request
PATCH /checkout/complete
```