X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=blobdiff_plain;f=tests%2Fcurl.txt;fp=tests%2Fcurl.txt;h=821b938e69aea725f6a476ebf28c1c300fa86d92;hp=7e147312b7fe458a7968f2ae43dd22790dbae3f5;hb=199445c061aac9aa77294d3861c11ca10a77a94b;hpb=a692051d7b10cab8a1ff7badcf67862fc7109ad4 diff --git a/tests/curl.txt b/tests/curl.txt index 7e14731..821b938 100644 --- a/tests/curl.txt +++ b/tests/curl.txt @@ -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