API Journal
📋 Lister les Entrées
GET /api/journal
Authorization: Bearer {token}
Paramètres
| Paramètre | Type | Description |
|---|---|---|
| page | number | Page |
| limit | number | Résultats par page |
| dateFrom | ISO date | Date de début |
| dateTo | ISO date | Date de fin |
| type | string | daily, weekly, monthly |
➕ Créer une Entrée
POST /api/journal
Authorization: Bearer {token}
Content-Type: application/json
{
"date": "2025-01-15",
"type": "daily",
"premarketAnalysis": "...",
"tradingPlan": "...",
"postmarketReview": "...",
"emotionalState": {
"energy": 8,
"focus": 7,
"stress": 3,
"confidence": 8
},
"lessonsLearned": ["..."]
}
📖 Obtenir une Entrée
GET /api/journal/{id}
Authorization: Bearer {token}
✏️ Mettre à Jour
PATCH /api/journal/{id}
Authorization: Bearer {token}
🗑️ Supprimer
DELETE /api/journal/{id}
Authorization: Bearer {token}