diff --git a/README.md b/README.md index cbc6c875057c61c41b11de1b6cb343803d202bd2..f18dc2ffb0c061c2d5e9940aa275ea0f5f74130f 100644 --- a/README.md +++ b/README.md @@ -115,18 +115,15 @@ Dans la mesure où nous allons maintenant avoir des tests, ce développement se ## Définition de l'API pour notre gestion des tâches -| URI | Méthode | MIME | Réponse | -|--------------|---------|-----------------------------------|-------------------| -| /taches | GET | application/json | liste des tâches | -| | | application/xml | | -| --- | | | | -| /taches | POST | application/json | | -| | | application/x-www-form-urlencoded | la tâche crée | -| --- | | | | -| /taches/{id} | GET | application/json | la tâche | -| --- | | | | -| /taches/{id} | PUT | application/json | la nouvelle tâche | -| | | | | +| URI | Méthode | MIME | Requête | Réponse | +|--------------------------|---------|-------------------------------------------------------|---------|----------------------| +| /taches | GET | application/json<br>application/xml | | liste des tâches | +| /taches | POST | application/json<br>application/x-www-form-urlencoded | tâche | | +| /taches/{id} | GET | application/json<br>application/xml | | la tâche | +| /taches/{id} | PUT | application/json | tâche | la nouvelle tâche | +| /taches/{id} | DELETE | | | 204 No Content | +| /taches/{id}/description | GET | text/plain | | chaîne de caractères | + ## Récupérer une tâche Nous pouvons déjà lancer les tests pour voir ce qu'il se passe : `mvn test`.