From b5a71c87adc0257053c1b1dd17671b90a5dc30f1 Mon Sep 17 00:00:00 2001 From: Fabrice Bellamy <12b@distrilab.fr> Date: Tue, 22 Oct 2024 14:03:51 +0200 Subject: [PATCH] update readme --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 2fdc013..2a76efa 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,25 @@ $ cd migration $ cargo interactive-update ``` +# Test / Debug +To register a user from the command line : +```sh +curl --location 'localhost:5150/api/auth/register' + --header 'Content-Type: application/json' + --data-raw '{ + "name": "test", + "email": "test@nixin.local", + "password": "Test" + }' +``` + +To test user login from the command line : +```sh +curl --location 'localhost:5150/api/auth/login' \ + --header 'Content-Type: application/json' \ + --data-raw '{ + "email": "test@nixin.local", + "password": "Test" + }' +``` +