update readme

This commit is contained in:
Douze Bé 2024-10-22 14:03:51 +02:00
parent 18bd54d3f0
commit b5a71c87ad

View file

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