Create 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/register

Body : JSON

{
"username": "username",
"password": "password",
"pejabat_id": 1
}

Response : 200 OK

{
"message": "success add admin",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"username": ["Username tidak boleh kosong"],
"password": ["Password tidak boleh kosong"],
"pejabat_id": ["Id tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error