{
    "info": {
        "_postman_id": "e93cc115-8014-4b5f-891f-6faab24661ac",
        "name": "Satu Data Bone - Portal API",
        "description": "Collection endpoint REST API publik Satu Data Bone. Ubah collection variables sesuai ID data yang ingin diakses.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Dataset",
            "item": [
                {
                    "name": "Daftar Dataset",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/dataset-list?q=&page=1&per_page=10"
                        },
                        "description": "Daftar dataset publik yang telah divalidasi."
                    }
                },
                {
                    "name": "Detail Dataset",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/dataset-view?id_dataset={{id_dataset}}"
                        },
                        "description": "Metadata satu dataset publik."
                    }
                },
                {
                    "name": "Isi Dataset",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/dataset-data?id_dataset={{id_dataset}}"
                        },
                        "description": "Kolom dan isi tabel dataset."
                    }
                }
            ]
        },
        {
            "name": "Statistik",
            "description": "Endpoint JSON untuk data yang ditampilkan pada /portal/statistik dan /portal/statistik-detail?id=....",
            "item": [
                {
                    "name": "Daftar Statistik",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/statistik-list?q=&jenis=&sektor=&produsen=&page=1&per_page=10"
                        },
                        "description": "Sumber data JSON untuk /portal/statistik. Filter tersedia: q, jenis, sektor, produsen, page, dan per_page."
                    }
                },
                {
                    "name": "Detail Statistik",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/statistik-view?id={{id_statistik}}"
                        },
                        "description": "Sumber data JSON untuk /portal/statistik-detail?id=.... Isi collection variable id_statistik dengan ID dari response Daftar Statistik."
                    }
                }
            ]
        },
        {
            "name": "Visualisasi",
            "item": [
                {
                    "name": "Daftar Visualisasi",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/visualisasi-list?q=&page=1&per_page=10"
                        },
                        "description": ""
                    }
                },
                {
                    "name": "Detail Visualisasi",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/visualisasi-view?id_visualisasi={{id_visualisasi}}"
                        },
                        "description": ""
                    }
                }
            ]
        },
        {
            "name": "Infografik",
            "item": [
                {
                    "name": "Daftar Infografik",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/infografik-list?q=&page=1&per_page=10"
                        },
                        "description": ""
                    }
                },
                {
                    "name": "Detail Infografik",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/infografik-view?id_infografik={{id_infografik}}"
                        },
                        "description": ""
                    }
                }
            ]
        },
        {
            "name": "Mapset",
            "item": [
                {
                    "name": "Daftar Mapset",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/mapset-list?q=&page=1&per_page=10"
                        },
                        "description": ""
                    }
                },
                {
                    "name": "Detail Mapset",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/mapset-view?id_mapset={{id_mapset}}"
                        },
                        "description": ""
                    }
                },
                {
                    "name": "Permintaan Unduh Mapset",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "urlencoded",
                            "urlencoded": [
                                {
                                    "key": "id_mapset",
                                    "value": "{{id_mapset}}",
                                    "type": "text"
                                },
                                {
                                    "key": "nama",
                                    "value": "Nama pengguna",
                                    "type": "text"
                                },
                                {
                                    "key": "instansi",
                                    "value": "Nama instansi",
                                    "type": "text"
                                },
                                {
                                    "key": "email",
                                    "value": "nama@example.go.id",
                                    "type": "text"
                                },
                                {
                                    "key": "wa_telp",
                                    "value": "08123456789",
                                    "type": "text"
                                },
                                {
                                    "key": "tujuan",
                                    "value": "Tujuan penggunaan data",
                                    "type": "text"
                                },
                                {
                                    "key": "setuju",
                                    "value": "1",
                                    "type": "text"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/mapset-download-request"
                        },
                        "description": "Mencatat permintaan dan menghasilkan tautan unduh bertoken."
                    }
                }
            ]
        },
        {
            "name": "File",
            "item": [
                {
                    "name": "Unduh File Publik",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/apiv1/frontend/file-download?id={{id_file}}"
                        },
                        "description": "Gunakan ID dari properti files pada response detail."
                    }
                }
            ]
        }
    ],
    "variable": [
        {
            "key": "base_url",
            "value": "https://satudata.bone.go.id",
            "type": "string"
        },
        {
            "key": "id_dataset",
            "value": "",
            "type": "string"
        },
        {
            "key": "id_statistik",
            "value": "",
            "type": "string"
        },
        {
            "key": "id_visualisasi",
            "value": "",
            "type": "string"
        },
        {
            "key": "id_infografik",
            "value": "",
            "type": "string"
        },
        {
            "key": "id_mapset",
            "value": "",
            "type": "string"
        },
        {
            "key": "id_file",
            "value": "",
            "type": "string"
        }
    ]
}