Commit | Line | Data |
---|---|---|
f0640a52 JB |
1 | * Create a user : |
2 | 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" | |
3 | ||
4 | * Show a user with id 1: | |
5 | curl --request GET http://localhost:8000/api/person/1 | |
6 | ||
7 | * Show a user with id 1 friends : | |
8 | curl --request GET http://localhost:8000/api/person/1/friends | |
9 | ||
10 | * Show a user with id 1 localisation : | |
11 | curl --request GET http://localhost:8000/api/person/1/localisation | |
12 | ||
13 | * Show a user with id 1 localisations : | |
14 | curl --request GET http://localhost:8000/api/person/1/localisations |