Login User

To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /user/login

Body : JSON

{
"username": "username",
"password": "password"
}

Response : 200 OK

{
"data": {
"user_info": {
"name": "user",
"username": "user",
"email": "user@example.com"
},
"access_token": "152|fNP44b1PqG0bpxFWubXRavSKvY00AUStq3FnrHPt",
"token_type": "Bearer"
},
"message": "Login successfully",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"message": "Password yang anda masukkan salah",
"status": 401
}

Response : 500 ERROR

Internal Server Error