Code cleanups
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 4 Jul 2018 18:32:59 +0000 (20:32 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 4 Jul 2018 18:32:59 +0000 (20:32 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/Controller/PersonController.php
tests/curl.txt

index 0b7a7d5c5d127e3f88c83dbaac3141c0c8da129b..92447dc521be481656beab25e31bac2ec2fc0e5e 100644 (file)
@@ -4,7 +4,6 @@ namespace App\Controller;
 use App\Entity\Person;
 use App\Entity\Localisation;
 use \Datetime;
-use \NotNull;
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 use FOS\RestBundle\Controller\FOSRestController;
 use FOS\RestBundle\Controller\Annotations as Rest;
index 821b938e69aea725f6a476ebf28c1c300fa86d92..554963b2e68766ba362d9d86ec6917b1f054693c 100644 (file)
@@ -8,7 +8,7 @@ curl --request DELETE http://localhost:8000/api/person/1
 curl --request PUT http://localhost:8000/api/person/1 --data "{ \"firstname\": \"Jamesson\", \"lastname\": \"Elbow\", \"email\": \"jamesson@elbow.com\" }" --header "Content-Type: application/json"
 
 * Authenticate a user with email and password:
-curl --request POST http://localhost:8000/api/person/authenticate --data "{ \"email\": \"jamesson@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\"}" --header "Content-Type: application/json"
+curl --request POST http://localhost:8000/api/person/authenticate --data "{ \"email\": \"jamesson@elbow.com\", \"password\": \"FD3CC7719AB1776B81D70B65170D8A51119E127488C106622E0D2E680C1B3FFF\" }" --header "Content-Type: application/json"
 
 * Update/add a user with id 1 localisation:
 curl --request POST http://localhost:8000/api/person/1/localisation --data "{ \"timestamp\": \"$(date --iso-8601=seconds)\", \"latitude\": \"43.23\", \"longitude\": \"5.43\" }" --header "Content-Type: application/json"