Skip to content
Snippets Groups Projects
Commit fe68a72e authored by Yvan Peter's avatar Yvan Peter
Browse files

amélioration tableau

parent a52f8510
No related branches found
No related tags found
No related merge requests found
......@@ -114,15 +114,16 @@ Si vous regardez le code de la classe `Tache`, vous constaterez que nous avons c
Dans la mesure où nous allons maintenant avoir des tests, ce développement se fera en TDD.
## Définition de l'API pour notre gestion des tâches
Notre ressource sera accessible via le chemin `/api/v1`. Le tableau ci-dessous liste les URI et les méthodes supportées par notre ressource ainsi que les représentation utilisés (au format JSON).
| 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 | GET | :arrow_left:application/json<br>:arrow_left:application/xml | | liste des tâches |
| /taches | POST | :arrow_left::arrow_right:application/json<br>:arrow_left:application/x-www-form-urlencoded | tâche (T1) | |
| /taches/{id} | GET | :arrow_left:application/json<br>:arrow_left:application/xml | | la tâche (T2) |
| /taches/{id} | PUT | :arrow_left::arrow_right:application/json | tâche (T2) | la nouvelle tâche (T2) |
| /taches/{id} | DELETE | | | 204 No Content |
| /taches/{id}/description | GET | text/plain | | chaîne de caractères |
| /taches/{id}/description | GET | :arrow_left: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`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment