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=8202612adde585ce0d596dffd3a0a7f7c39ff6fc;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=f0640a5242b2a959068696eed3d41c37d07633a7;hpb=84fd6c7fa765874e478ad7f92e356e88b3ff962c diff --git a/tests/curl.txt b/tests/curl.txt index e69de29..8202612 100644 --- a/tests/curl.txt +++ b/tests/curl.txt @@ -0,0 +1,14 @@ +* Create a user : +curl --request POST --data "{ \"firstname\": \"James\", \"lastname\": \"Elbow\", \"email\": \"james@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\"}" http://localhost:8000/api/person/register --header "Content-Type: application/json" + +* Show a user with id 1: +curl --request GET http://localhost:8000/api/person/1 + +* Show a user with id 1 friends : +curl --request GET http://localhost:8000/api/person/1/friends + +* Show a user with id 1 localisation : +curl --request GET http://localhost:8000/api/person/1/localisation + +* Show a user with id 1 localisations : +curl --request GET http://localhost:8000/api/person/1/localisations