docs/v2/storefront/index.yaml in spree_api-3.7.1 vs docs/v2/storefront/index.yaml in spree_api-3.7.2
- old
+ new
@@ -402,10 +402,39 @@
$ref: '#/components/schemas/Error'
security:
- orderToken: []
- bearerAuth: []
+ '/cart/estimate_shipping_rates':
+ get:
+ description: Returns a list of Estimated Shipping Rates for Cart
+ tags:
+ - Cart
+ operationId: 'Estimate Shipping Rates'
+ parameters:
+ - name: country_iso
+ in: query
+ description: >-
+ Country ISO or ISO3 symbol to get estimations for this destination,
+ by default we'll try to reuse Cart shipping address or the default Country for the current Store
+ schema:
+ type: string
+ example: 'USA'
+ - $ref: '#/components/parameters/SparseFieldsParam'
+ responses:
+ '200':
+ description: Returns a list of estimated Shipping Rates for Cart
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/EstimateShippingRatesList'
+ '404':
+ $ref: '#/components/responses/404NotFound'
+ security:
+ - orderToken: []
+ - bearerAuth: []
+
'/checkout':
patch:
description: >-
Updates the Checkout
<br />
@@ -787,10 +816,22 @@
example: Red
description: >-
Find Prodcuts with Variants that have the specified option (eg. color, size)
and value (eg. red, XS)
- in: query
+ name: 'filter[show_deleted]'
+ schema:
+ type: boolean
+ example: true
+ description: Returns also deleted products
+ - in: query
+ name: 'filter[show_discontinued]'
+ schema:
+ type: boolean
+ example: true
+ description: Returns also discontinued products
+ - in: query
name: sort
schema:
type: string
example: >-
-updated_at,price
@@ -2219,9 +2260,17 @@
included:
type: array
items:
oneOf:
- $ref: '#/components/schemas/ShippingRate'
+ EstimateShippingRatesList:
+ required:
+ - data
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/ShippingRate'
ShippingRate:
properties:
id:
type: string
example: '1'