feat: update version to 0.7.9 and enhance project documentation
- Incremented application version to 0.7.9 and updated database schema version to 20260427030. - Revised project status documentation to reflect recent milestones and changes, including detailed logs of implemented features and next steps. - Enhanced API specifications for exercises, including support for exercise variants and improved query parameters. - Updated frontend routing to streamline exercise variant management within the ExerciseFormPage. - Implemented role-based media upload limits and refined search/filter specifications for better user experience.
This commit is contained in:
1 parent
d5fbc2cd5c
commit
7134fd1a25
11 files changed
+281
-191
No files matched your search
@@ -1,9 +1,10 @@
|
||||
# Exercises API Specification
|
||||
|
||||
**Version:** 1.2
|
||||
**Datum:** 2026-04-24
|
||||
**Status:** REVIEWED - Pending Implementation
|
||||
**Autor:** Claude Code
|
||||
**Version:** 1.3
|
||||
**Datum:** 2026-04-27
|
||||
**Status:** Teilweise implementiert (Liste mit Filtern + Varianten + Medienlimits siehe Code)
|
||||
**Autor:** Claude Code
|
||||
**Änderungen v1.3:** `GET /exercises` erweiterte Query-Parameter (`include_variants`, Multi-Filter, `ai_search`-Platzhalter); Dokumentation angepasst
|
||||
**Änderungen v1.2:** KI-Assistenz Endpoints, Skill-Level-System (benannte Stufen), intensity als low/medium/high
|
||||
**Änderungen v1.1:** Exercise Blocks Endpoints, Permissions dokumentiert, age_groups korrigiert
|
||||
|
||||
@@ -66,33 +67,35 @@ Development: https://dev.shinkan.jinkendo.de/api
|
||||
|
||||
### `GET /exercises`
|
||||
|
||||
**Query Parameters:**
|
||||
- `focus_area` (int, optional) - Focus Area ID
|
||||
- `visibility` (enum, optional) - `private | club | official`
|
||||
- `status` (enum, optional) - `draft | in_review | approved | archived`
|
||||
- `skill_id` (int, optional) - Skill ID
|
||||
- `search` (string, optional) - Volltext (title, summary, execution)
|
||||
- `limit` (int, optional, default: 50, max: 100)
|
||||
- `offset` (int, optional, default: 0)
|
||||
**Query Parameters (Auswahl):**
|
||||
|
||||
| Parameter | Beschreibung |
|
||||
|-----------|----------------|
|
||||
| `focus_area_ids[]`, `focus_area` | Fokusbereiche (ODER über Liste oder Legacy Einzel-ID) |
|
||||
| `visibility_any[]`, `visibility` | Sichtbarkeit(en) |
|
||||
| `status_any[]`, `status` | Status |
|
||||
| `skill_ids[]`, `skill_id` | Fähigkeit(en) |
|
||||
| `skill_min_level`, `skill_max_level` | Stufe 1–5 auf Übung↔Skill-Zuordnung |
|
||||
| `style_direction_ids[]`, `style_direction_id` | Stilrichtung(en) |
|
||||
| `training_type_ids[]`, `training_type_id` | Trainingsstil(e) |
|
||||
| `target_group_ids[]`, `target_group_id` | Zielgruppe(n) |
|
||||
| `search`, `ai_search` | Volltext (aktuell gleiche Logik; `ai_search` Platzhalter für spätere KI-Suche) |
|
||||
| `include_variants` | `true`: jedes Listenelement enthält optional kompaktes **`variants`** für UI/Planung |
|
||||
| `limit` | Default 50, max 100 |
|
||||
| `offset` | Default 0 |
|
||||
|
||||
**Response:** `200 OK`
|
||||
|
||||
Lightweight-Liste; bei `include_variants=true` zusätzlich z. B.:
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Maai - Distanzübung",
|
||||
"summary": "Distanzgefühl entwickeln...",
|
||||
"focus_area": "karate",
|
||||
"visibility": "club",
|
||||
"status": "approved",
|
||||
"created_by": 1,
|
||||
"creator_name": "Lars",
|
||||
"club_id": 1,
|
||||
"club_name": "Dojo Berlin",
|
||||
"created_at": "2026-04-20T10:00:00Z",
|
||||
"updated_at": "2026-04-22T14:30:00Z"
|
||||
}
|
||||
]
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Maai - Distanzübung",
|
||||
"variants": [
|
||||
{ "id": 10, "variant_name": "Basis", "sequence_order": 1 }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**Errors:**
|
||||
|
||||
Reference in new issue
Block a user