Fix the user creation ressource.
[Project_proches_de_moi-server.git] / tests / curl.txt
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8202612adde585ce0d596dffd3a0a7f7c39ff6fc 100644 (file)
@@ -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