# curl commands

## User

### Sign-in

	curl -X POST -v -d '{"login":"kikoo", "passwd":"kiki"}' http://127.0.0.1:8080/users/signin

### Sign-up

	curl -X POST -v -d '{"user":{"login":"kikoo", "passwd":"kiki", "email":"kikoo@kiki.fr", "imgUrl":"kikoo.kiki.fr"}}' http://127.0.0.1:8080/users/signup

### Get single user

	curl -X GET 'http://127.0.0.1:8080/users/kikoo?token=token' -v

### Get authenticated user

	curl -X GET 'http://127.0.0.1:8080/user?token=token' -v

### Sign-out

	curl -X POST -v -d '{"token":"token"}' http://127.0.0.1:8080/user/signout

### Delete

	curl -X DELETE -v -d '{"token":"token"}' http://127.0.0.1:8080/user

# curl commands

## User

### Sign-in

	curl -X POST -v -d '{"login":"kikoo", "passwd":"kiki"}' http://127.0.0.1:8080/users/signin

### Sign-up

	curl -X POST -v -d '{"user":{"login":"kikoo", "passwd":"kiki", "email":"kikoo@kiki.fr", "imgUrl":"kikoo.kiki.fr"}}' http://127.0.0.1:8080/users/signup

### Get single user

	curl -X GET 'http://127.0.0.1:8080/users/kikoo?token=token' -v

### Get authenticated user

	curl -X GET 'http://127.0.0.1:8080/user?token=token' -v

### Sign-out

	curl -X POST -v -d '{"token":"token"}' http://127.0.0.1:8080/user/signout

### Delete

	curl -X DELETE -v -d '{"token":"token"}' http://127.0.0.1:8080/user

### Get the login associated to a token

	curl -X GET 'http://127.0.0.1:8080/tokens/token' -v

Add curl command related to "/tokens/:token" API call.
Add curl command related to "/tokens/:token" API call.

Related to commit a07e896b73be4e4af25b012ff17f9d2a7dd22f84.
