xavi7th / theelects-frontend

0 stars 0 forks source link

Get available sort options #19

Open xavi7th opened 2 months ago

xavi7th commented 2 months ago

Description

This document provides a sample data of available sort options. The options include sorting by "Featured", "Price: Low to High", "Price: High to Low", "Newest Items", "Best Sellers", "Name: A to Z", and "Name Z to A".

Sample Data required

{
  "options": [
    { "id": 1, "name": "Featured", "value": "featured-desc" },
    { "id": 2, "name": "Price: Low to High", "value": "price-asc" },
    { "id": 3, "name": "Price: High to Low", "value": "price-desc" },
    { "id": 4, "name": "Newest Items", "value": "new-asc" },
    { "id": 5, "name": "Best Sellers", "value": "best-new" },
    { "id": 6, "name": "Name: A to Z", "value": "name-asc" },
    { "id": 7, "name": "Name Z to A", "value": "name-desc" }
  ]
}