From a52f8510cf4cdb0bcb55af57c0ec5d053f233bdc Mon Sep 17 00:00:00 2001 From: Yvan Peter <yvan.peter@univ-lille.fr> Date: Fri, 5 Feb 2021 17:55:15 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20tableau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index cbc6c87..f18dc2f 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`. -- GitLab