Add tag filter to blogs, portfolios, and videos list APIs.

Storefronts can filter published content by metadata.tags the same way as products; website API docs are updated to match.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-22 21:14:42 +03:30
co-authored by Cursor
parent e0e122ed57
commit 1b16e79d3f
12 changed files with 128 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ You are building a **Meshkee business website (storefront)**. You must use the M
### Typical bootstrap sequence
1. `GET /tenants/{domain}` → branding + `businessId` + `specialProductsSource` (`product` or `store_item`)
2. Homepage: business-info, **static-images**, sliders, category-groups, brand-groups, store-specials (`source` repeats the tenant setting; items are store listings when `source` is `store_item`)
3. Catalog: categories, products (`GET /products/{slug}` includes `relatedProducts`: same category then same brand, in-stock first), store-items (`name` instant search: in-stock first, then `updatedAt`), **user-products** (customer stock listings)
3. Catalog: categories, products (`GET /products/{slug}` includes `relatedProducts`: same category then same brand, in-stock first), store-items (`name` instant search: in-stock first, then `updatedAt`), **user-products** (customer stock listings). List filters: products/blogs/portfolios/videos accept `?tag=` (exact match on `metadata.tags`).
4. Auth: register/login → store tokens. Optional: `POST /auth/send-otp` then `POST /auth/login-otp` (passwordless) or `POST /auth/reset-password` (forgot password). `POST /auth/verify-otp` only marks the cell verified (no tokens).
5. Cart checkout with `addressId` or inline `shippingAddress` + `payment`
- For online pay: `payment.type = "e_payment_gate"`, `gatewayType` (e.g. `"mellat"` or `"zarinpal"`), and absolute `returnUrl`
@@ -715,6 +715,11 @@
"key": "title",
"value": "",
"disabled": true
},
{
"key": "tag",
"value": "",
"disabled": true
}
]
}
@@ -822,6 +827,11 @@
"key": "title",
"value": "",
"disabled": true
},
{
"key": "tag",
"value": "",
"disabled": true
}
]
}
@@ -924,6 +934,11 @@
"key": "title",
"value": "",
"disabled": true
},
{
"key": "tag",
"value": "",
"disabled": true
}
]
}
+24
View File
@@ -933,6 +933,14 @@
"schema": {
"type": "string"
}
},
{
"name": "tag",
"in": "query",
"description": "Filter by exact tag in metadata.tags",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -1094,6 +1102,14 @@
"schema": {
"type": "string"
}
},
{
"name": "tag",
"in": "query",
"description": "Filter by exact tag in metadata.tags",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -1244,6 +1260,14 @@
"schema": {
"type": "string"
}
},
{
"name": "tag",
"in": "query",
"description": "Filter by exact tag in metadata.tags",
"schema": {
"type": "string"
}
}
],
"responses": {