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" + }' +``` +