Open JeonBeomGu-S opened 3 weeks ago
POST https://localhost:3000/api/login
{
"email": "bgjeon@myseneca.ca",
"password": "abc123"
}
email
: user email
password
: user password
Success
Fail
HTTP Status Code: 400 Bad Request
{
"status": 400
"errCode": "LOGIN001",
"errMsg": "Login is failed."
}
HTTP Status Code: 412 Precondition Failed
{
"status": 412,
"errCode": "LOGIN002",
"errMsg": "Please check id and password."
}
HTTP Status Code: 500 Internal Server Error
{
"status": 500,
"errCode": "LOGIN003",
"errMsg": "Login is failed."
}
Users can log in to the blog using their email and password.