Get Detail Pembangunan

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 : /pembangunan/(ID)

Response : 200 OK

{
"id": 11,
"nama_pembangunan": "Pembangunan",
"sumber_dana": "Dana Desa",
"tahun": "2022",
"dusun_id": 1,
"rw_id": 1,
"rt_id": 3,
"deleted_at": null,
"created_at": "2022-03-25T13:30:22.000000Z",
"updated_at": "2022-03-25T13:30:22.000000Z",
"pembangunan_item": [
{
"id": 12,
"pembangunan_id": 11,
"deskripsi": "20",
"progress": 20,
"photos": [
"http://localhost:8000/media/pembangunan-BXyxJJpsVcISbyhgF.jpeg",
"http://localhost:8000/media/pembangunan-26nkWWvDFOVWyUjrt.jpeg"
],
"deleted_at": null,
"created_at": "2022-03-25T13:35:12.000000Z",
"updated_at": "2022-03-25T13:35:12.000000Z"
},
{
"id": 11,
"pembangunan_id": 11,
"deskripsi": "10",
"progress": 10,
"photos": [
"http://localhost:8000/media/pembangunan-mpyLB5wU3PakdEf1y.jpeg"
],
"deleted_at": null,
"created_at": "2022-03-25T13:34:18.000000Z",
"updated_at": "2022-03-25T13:34:18.000000Z"
}
],
"dusun": {
"id": 1,
"nama_dusun": "Dusun A",
"kepala_dusun": "Kadus A",
"nik": "12345"
},
"rt": {
"id": 3,
"dusun_id": 1,
"rw_nama": "001",
"rw_ketua": "RW Dusun A",
"rt_nama": "001",
"rt_ketua": "Dusun A RW satu RT Satu"
},
"rw": {
"id": 1,
"dusun_id": 1,
"rw_nama": "001",
"rw_ketua": "Dusun A RW Satu",
"rt_nama": null,
"rt_ketua": null
},
"progress": 20
}

Response : 404 NOT FOUND

Not Found

Response : 500 ERROR

Internal Server Error