Fix the user creation ressource.
[Project_proches_de_moi-server.git] / tests / curl.txt
CommitLineData
f0640a52
JB
1* Create a user :
2curl --request POST --data "{ \"firstname\": \"James\", \"lastname\": \"Elbow\", \"email\": \"james@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\"}" http://localhost:8000/api/person/register --header "Content-Type: application/json"
3
4* Show a user with id 1:
5curl --request GET http://localhost:8000/api/person/1
6
7* Show a user with id 1 friends :
8curl --request GET http://localhost:8000/api/person/1/friends
9
10* Show a user with id 1 localisation :
11curl --request GET http://localhost:8000/api/person/1/localisation
12
13* Show a user with id 1 localisations :
14curl --request GET http://localhost:8000/api/person/1/localisations