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=554963b2e68766ba362d9d86ec6917b1f054693c;hp=821b938e69aea725f6a476ebf28c1c300fa86d92;hb=4885c7cf77a7e48e2abe4c97a2b404d0dd55f47e;hpb=199445c061aac9aa77294d3861c11ca10a77a94b diff --git a/tests/curl.txt b/tests/curl.txt index 821b938..554963b 100644 --- a/tests/curl.txt +++ b/tests/curl.txt @@ -8,7 +8,7 @@ curl --request DELETE http://localhost:8000/api/person/1 curl --request PUT http://localhost:8000/api/person/1 --data "{ \"firstname\": \"Jamesson\", \"lastname\": \"Elbow\", \"email\": \"jamesson@elbow.com\" }" --header "Content-Type: application/json" * Authenticate a user with email and password: -curl --request POST http://localhost:8000/api/person/authenticate --data "{ \"email\": \"jamesson@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\"}" --header "Content-Type: application/json" +curl --request POST http://localhost:8000/api/person/authenticate --data "{ \"email\": \"jamesson@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\" }" --header "Content-Type: application/json" * Update/add a user with id 1 localisation: curl --request POST http://localhost:8000/api/person/1/localisation --data "{ \"timestamp\": \"$(date --iso-8601=seconds)\", \"latitude\": \"43.23\", \"longitude\": \"5.43\" }" --header "Content-Type: application/json"