Skip to content

Commit

Permalink
2.27. Добавит примеры запросов для тестирования.
Browse files Browse the repository at this point in the history
В директории модуля «Authentication» создадим файл `authentication.http` и создадим
заготовки для проверки обработки запросов.
  • Loading branch information
AntonovIgor committed Apr 3, 2024
1 parent fb82dbf commit 70ea983
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Create a new user
POST http://localhost:3000/api/auth/register HTTP/1.1
Content-Type: application/json

{
"email": "[email protected]",
"dateBirth": "2012-02-22",
"firstname": "Keks",
"lastname": "Smith",
"password": "123456"
}

###

# Get user by ID
GET http://localhost:3000/api/auth/7aef6925-4fe5-4057-b5cc-cc7cf214df05 HTTP/1.1

###

# Login user by email and password
POST http://localhost:3000/api/auth/login HTTP/1.1
Content-Type: application/json

{
"email": "[email protected]",
"password": "123456"
}

###

0 comments on commit 70ea983

Please sign in to comment.