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

tableau

parent 3b2af8c9
No related branches found
No related tags found
No related merge requests found
......@@ -59,10 +59,10 @@ Nous pouvons tout d'abord réfléchir à l'API REST que nous allons offrir pour
| URI | Opération | MIME | Requête | Réponse |
| :----------------------- | :---------- | :--------------------------------------------- | :-- | :---------------------------------------------------- |
| /ingredients | GET | <-application/json&<-application/xml | | 200 et liste des ingrédients (I2) |
| /ingredients/{id} | GET | <-application/json&<-application/xml | | 200 et un ingrédient (I2) ou 404 |
| /ingredients | GET | <-application/json<br><-application/xml | | 200 et liste des ingrédients (I2) |
| /ingredients/{id} | GET | <-application/json<br><-application/xml | | 200 et un ingrédient (I2) ou 404 |
| /ingredients/{id}/name | GET | <-text/plain | | 200 et le nom de l'ingrédient ou 404 |
| /ingredients | POST | <-/->application/json& ->application/x-www-form-urlencoded | Ingrédient (I1) | Nouvel ingrédient (I2) |
| /ingredients | POST | <-/->application/json<br>->application/x-www-form-urlencoded | Ingrédient (I1) | Nouvel ingrédient (I2) |
| | | | | 409 si l'ingrédient existe déjà (même nom) |
| /ingredients/{id} | DELETE | | | |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment