Add a person search REST ressource.
[Project_proches_de_moi-server.git] / tests / curl.txt
index c597b4d83956604d842d95200f2d00d55e3b4f24..7e147312b7fe458a7968f2ae43dd22790dbae3f5 100644 (file)
@@ -17,6 +17,9 @@ 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"
+
 * Show a user with id 1:
 curl --request GET http://localhost:8000/api/person/1