Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 975 Bytes

request.rest

File metadata and controls

64 lines (47 loc) · 975 Bytes

@site = https://server110.herokuapp.com @url = http://localhost:5000 @userID = 61a4edf5c1d8970016bba435 @token = ### {{url}} ### https://server110.herokuapp.com/home ### {{url}}/home


POST https://server110.herokuapp.com/api/auth/register HTTP/1.1 Content-Type: application/json

{
"username": "User2", "email": "user2@email.com", "password": "12345678"

}


POST https://server110.herokuapp.com/api/auth/login HTTP/1.1 Content-Type: application/json

{
"username": "admin", "password": "12345678"

}


POST {{url}}/api/auth/register HTTP/1.1 Content-Type: application/json

{
"username": "admin", "email": "admin@email.com", "password": "12345678"

}

POST {{url}}/api/auth/login HTTP/1.1 Content-Type: application/json

{
"username": "User2", "password": "12345678"

}


PUT {{url}}/api/user/61a4edf5c1d8970016bba435 HTTP/1.1 Content-Type: application/json

{
"username": "User2Updated"

}