Login User
Authenticate User by Email and Password
Endpoint
Base URL
http://localhost:8080Method and Endpoint
POST /api/users/loginRequest Body
Request Body
{
"email": "example@gmail.com",
"password": "YourPassword_123",
}Responses
You will get responses like this:
200 (success)
Response Body
{
"access_token": "unique-string-for-access-token"
}400 (bad request)
Response Body
{
"error": "email or password incorrect"
}400 (bad request - email not exist)
Response Body
{
"error": "email doesn't exist"
}500 (server error)
Response Body
{
"error": "Internal server error"
}