Refine the search REST ressource.
[Project_proches_de_moi-server.git] / tests / curl.txt
index 7e147312b7fe458a7968f2ae43dd22790dbae3f5..821b938e69aea725f6a476ebf28c1c300fa86d92 100644 (file)
@@ -17,8 +17,8 @@ curl --request POST http://localhost:8000/api/person/1/localisation --data "{ \"
 curl --request PUT http://localhost:8000/api/person/1/online
 curl --request PUT http://localhost:8000/api/person/1/offline
 
-* Search a user with a keyword:
-curl --request POST http://localhost:8000/api/person/search --data "{ \"keyword\": \"isabelle\"}" --header "Content-Type: application/json"
+* Search a user with a keyword set to isabelle:
+curl --request GET http://localhost:8000/api/person/search?keyword=isabelle
 
 * Show a user with id 1:
 curl --request GET http://localhost:8000/api/person/1