NEED TO DO task link
in command line
make run
in command line
make stop
request
http://localhost:8001/generate-salt
response
{
"salt": "293960b3d957"
}
request create user
curl --request POST \
--url http://localhost:8002/create-user \
--header 'Content-Type: application/json' \
--data '{
"email": "aaa@mail.ru",
"password": "12345"
}'
response
{
"status": "ok",
"message": "user created"
}
request get user
http://localhost:8002/get-user/aaa@mail.ru
response
{
"id": "63ee69b935dd1f2cb699ca0d",
"email": "aaa@mail.ru",
"password": "d8206c92cbf434c985c496fe3b6e684c",
"salt": "825a1dc4321c"
}
or
{
"status": "not found",
"message": "mongo: no documents in result"
}