Outils pour utilisateurs

Outils du site


web:rest

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
web:rest [2022/02/02 00:42] – modification externe 127.0.0.1web:rest [2022/04/10 22:20] (Version actuelle) – [Sources] sgariepy
Ligne 14: Ligne 14:
 ===== REST-ful CRUD ===== ===== REST-ful CRUD =====
  
-* Create +  * Create 
-  * POST - http://localhost/api/books +    * POST - http://localhost/api/books 
-  * Si succès, retourne HTTP 201 Created +    * Si succès, retourne HTTP 201 Created 
-* Read +  * Read 
-  * GET - http://localhost/api/books ou http://localhost/api/books/+    * GET - http://localhost/api/books ou http://localhost/api/books/
-  * Si succès, retourne HTTP 200 OK +    * Si succès, retourne HTTP 200 OK 
-* Update +  * Update 
-  * PUT - http://localhost/api/books/+    * PUT - http://localhost/api/books/
-  * Si succès, retourne HTTP 204 No Content +    * Si succès, retourne HTTP 204 No Content 
-* Delete +  * Delete 
-  * DELETE - http://localhost/api/books/+    * DELETE - http://localhost/api/books/
-  * Si succès, retourne HTTP 204 No Content+    * Si succès, retourne HTTP 204 No Content
  
 ===== Actions plus complexes ===== ===== Actions plus complexes =====
Ligne 50: Ligne 50:
  
 ===== Sources ===== ===== Sources =====
-  * http://rest.elkstein.org/2008/02/what-is-rest.html+ 
 +  [[http://rest.elkstein.org/2008/02/what-is-rest.html|Learn REST: A Tutorial]]
web/rest.1643758967.txt.gz · Dernière modification : 2022/02/02 00:42 de 127.0.0.1