https://cocukasistan.herokuapp.com/
{
"code": 200,
"message": "Logged in successfully",
"data": {
"email": "umut_aslan70@hotmail.com",
"full_name": "Umut Bulak",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTIsImlhdCI6MTU4MzQwNTEyNn0.0HwBhXl6utA5tAD4ryu9Mj1lHuW-PgcmyYJOvERPwkA"
}
}
{
"code": 422,
"message": "Incorrect email or password"
}
{
"code": 500,
"message": "An error occured while creating token"
}
{
"code": 500,
"message": "An error occured while comparing password"
}
{
"code": 503,
"message": "Database error"
}
// URL/user/signup
{
"code": 200,
"message": "The mail was sent in successfully",
"data": null
}
{
"code": 500,
"message": "User is exist"
}
-------------------------
{
"code": 500,
"message": "An error occured while creating token"
}
-------------------------
{
"code": 500,
"message": "An error occured while sending mail"
}
// URL/user/signup
{
"code": 503,
"message": "Database error"
}
🔒 Şifre Güncelleme Metodu
{
"code": 200,
"message": "Updated password in successfully",
"data": null
}
{
"code": 500,
"message": "An error occured while hashing password"
}
{
"code": 503,
"message": "Database error"
}
{
"code": 200,
"message": "Success",
"data": {
"full_name": "Umut Bulak",
"email": "umut_aslan95@hotmail.com"
}
}
{
"code": 422,
"message": "Invalid token"
}