Login Admin

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 : /admin/login

Body : JSON

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

Response : 200 OK

{
"data": {
"user_info": {
"username": "username",
"name": "name",
"nip": "94859",
"jabatan": "jabatan"
},
"access_token": "6|6MqeZdEAKniOPszGyMXEdj7YOt6sKTPUIqndRbj8",
"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