List-data
List-data
METHOD: POST
Service ini menyediakan list tabel data sesuai dengan sektor dan sub sektor.
{{baseurl}}/app/v1/tabellist/
Headers
Header | Type | Required | Description |
---|---|---|---|
x-username | string | Yes | The username for the user |
x-password | string | Yes | The password for the user |
Auth Type
Auth Type | Type | Required | Description |
---|---|---|---|
Bearer Token | string | Yes | Key app to access API (You need an token API. Please log in to the API to generate an token. If you already have an token, please provide it below.) |
Parameter
Field | Type | Required | Description |
---|---|---|---|
id_sector | Number | Yes |
ID unique of Sektor (see master Sektor) |
id_sub_sector | Number | Yes |
ID unique of Sektor Sub (see master Sektor Sub) |
start_year | Number | Yes |
Start Year selected to display data, Ex : |
end_year | Number | Yes |
End Year selected to display data, Ex : |
Success (200 OK)
HTTP/1.1 200 OK
{ "code": "200", "message": "data-available", "data": [ { "id_kegiatan": "27", "id_urusan": "102", "id_itemdata": "316", "kategori_meta": "Variabel", "level_data": "Kecamatan", "judul_tabel": "Kunjungan Pasien di RSUD Banyumas Menurut Asal Kecamatan", "satuan": "Orang", "tipe_data": "Integer", "update_data": "2024-03-19 10:30:41", "kode_unker": "10202001", "isidata": { "2019": [ { "isi": "137637", "tahun": "2019", "ket": null } ], "2020": [ { "isi": "78170", "tahun": "2020", "ket": null } ] } } ... ] }
Error 4xx
HTTP/1.1 40x
{
"code": "40x",
"message": "account does not match",
"data": []
}