Get All Penduduk

To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:

Method : GET

URL : /penduduk

Response : 200 OK

[
{
"id": 3,
"nama": "Nama B",
"foto": "avatar.png",
"nik": "123",
"no_kk": "123",
"hubungan_id": 2,
"sex": 1,
"tempatlahir": "Malang B",
"tanggallahir": "2022-03-01",
"agama_id": 1,
"pendidikan_terakhir_id": 2,
"kawin_id": 2,
"kewarganegaraan_id": 1,
"dusun_id": 2,
"rw_id": 2,
"rt_id": 2,
"alamat": "Alamat B",
"nama_ayah": "Ayah B",
"nama_ibu": "Ibu B",
"status": 1,
"created_at": "2022-02-28T14:54:16.000000Z",
"updated_at": "2022-02-28T17:51:34.000000Z",
"deleted_at": null
}
]

Response : 404 NOT FOUND

Not Found

Response : 500 ERROR

Internal Server Error