From 4885c7cf77a7e48e2abe4c97a2b404d0dd55f47e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 4 Jul 2018 20:32:59 +0200 Subject: [PATCH] Code cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/Controller/PersonController.php | 1 - tests/curl.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/PersonController.php b/src/Controller/PersonController.php index 0b7a7d5..92447dc 100644 --- a/src/Controller/PersonController.php +++ b/src/Controller/PersonController.php @@ -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; diff --git a/tests/curl.txt b/tests/curl.txt index 821b938..554963b 100644 --- a/tests/curl.txt +++ b/tests/curl.txt @@ -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" -- 2.34.1