update readme
This commit is contained in:
parent
18bd54d3f0
commit
b5a71c87ad
1 changed files with 22 additions and 0 deletions
22
README.md
22
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"
|
||||
}'
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue