feat: add bulk actions for selected games
CI / test (push) Successful in 19s

This commit is contained in:
strsv committed 2026-11-06 08:51:31 +03:00
1 parent 17e5805b2e
commit c811107776
11 files changed
+253 -12

No files matched your search

+11
View File
@@ -19,6 +19,7 @@
| GET | `/api/cover/{appid}` | обложка (локальный кэш/CDN) |
| POST | `/api/recommend` | подбор игр под настроение |
| POST | `/api/personal/{appid}` | статус, оценка, избранное, заметка |
| POST | `/api/personal/bulk` | статус/избранное для нескольких игр |
| POST | `/api/prefetch` | очередь описаний / повтор «недоступных» |
| POST | `/api/refresh` | импорт БД (`incremental` или `full`) |
| POST | `/api/translate` | перевод описаний |
@@ -266,6 +267,16 @@ Invoke-RestMethod "http://127.0.0.1:8765/api/games?genre=RPG&genre=Adventure&tag
Поля опциональны. `rating: 0` очищает оценку, `notes: null` очищает заметку.
Ответ — строка `personal` после обновления.
## `POST /api/personal/bulk`
```json
{"appids": [1, 2, 3], "status": "played", "favorite": true}
```
Обновляет только переданные поля (`status`, `favorite`) и не трогает оценки,
заметки и атрибуты. Пустой `appids` → 400 `no appids`; нет ни одного поля → 400;
неизвестные appid → 404. Ответ: `{"updated": 3}`.
## `POST /api/prefetch`
```json