API Avis
Récupérez et modérez les avis clients.
Lister les avis
GET /api/projects/{projectId}/reviewsParamètres
| Paramètre | Type | Description |
|---|---|---|
status | string | PENDING, APPROVED, REJECTED |
Réponse (200)
{
"data": [
{
"id": "review_123",
"projectId": "proj_123",
"rating": 5,
"title": "Excellent!",
"content": "Très satisfait du service...",
"status": "APPROVED",
"createdAt": "2024-01-15T10:30:00Z"
}
]
}Créer un avis
POST /api/projects/{projectId}/reviews
Content-Type: application/jsonRequĂŞte
{
"rating": 5,
"title": "Excellent service",
"content": "Très satisfait du service fourni",
"email": "client@example.com"
}Réponse (201)
{
"data": { ... }
}Modérer un avis
PATCH /api/projects/{projectId}/reviews/{reviewId}
Authorization: Bearer TOKEN
Content-Type: application/jsonRequĂŞte
{
"status": "APPROVED"
}Supprimer un avis
DELETE /api/projects/{projectId}/reviews/{reviewId}
Authorization: Bearer TOKENVoir Avis clients pour plus.
Last updated on