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.

API documentation for the new sort param

Damian Kaczmarczyk0f0ff8989b95
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 9f8c223244..ac7ff79048 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -1129,11 +1129,12 @@ paths:
name: sort
schema:
type: string
- example: '-updated_at,price'
+ example: '-updated_at,price,-name'
description: |-
Sort products based on: <ul>
<li>price (ascending/descenging)</li>
<li>updated_at (ascending/descenging)</li>
+ <li>name (ascending/descenging)</li>
</ul> Use <q>-</q> sign to set descenging sort, eg. <q>-updated_at</q>
- $ref: '#/components/parameters/PageParam'
- $ref: '#/components/parameters/PerPageParam'