feat: add tag filtering to blog posts and implement JSON_CONTAINS DQL function

This commit is contained in:
hamed
2026-06-21 17:34:07 +03:30
parent 91cfb64217
commit 21b6c583c0
5 changed files with 69 additions and 10 deletions
+1
View File
@@ -15,6 +15,7 @@ List published blog posts.
|-------|------|----------|---------|-------------|
| `page` | integer | ❌ | 1 | Page number |
| `limit` | integer | ❌ | 20 | Items per page |
| `tag` | string | ❌ | — | Filter by exact tag **name** (e.g. `?tag=دیابت`). Blog tags are stored as a JSON array of names; only blogs whose `tags` array contains this exact name are returned. |
### Response `200`
```json