Create Dusun
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 : /wiladm/dusun
Body : JSON
{ "nama_dusun": "Sugih Waras", "kepala_dusun": "Sugino", "nik": "111111111"}
Response : 200 OK
{ "message": "Success create dusun", "status": 200}
Response : 422 UNPROCESSABLE CONTENT
{ "error": { "nama_dusun": ["Nama Dusun tidak boleh kosong"], "kepala_dusun": ["Kepala Dusun tidak boleh kosong"], "nik": ["NIK Kepala Dusun tidak boleh kosong"] }}
Response : 500 ERROR
Internal Server Error