{
	"info": {
		"_postman_id": "8d3e2db7-03e5-4702-8697-39b03eeedb91",
		"name": "Porsada API",
		"description": "API untuk mengambil data sektoral yang sudah diverifikasi (level Walidata, status Accepted) dari aplikasi Porsada.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Get Data Sektoral",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{API_TOKEN}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{BASE_URL}}/api/v1/data-sektoral?tahun=2024&limit=10",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"api",
						"v1",
						"data-sektoral"
					],
					"query": [
						{
							"key": "tahun",
							"value": "2024",
							"description": "Filter data berdasarkan tahun spesifik"
						},
						{
							"key": "limit",
							"value": "10",
							"description": "Jumlah data per halaman"
						},
						{
							"key": "sort_by",
							"value": "nama_elemen_data",
							"description": "Opsi sorting (contoh: id, nama_elemen_data, created_at)",
							"disabled": true
						},
						{
							"key": "sort_order",
							"value": "asc",
							"description": "asc atau desc",
							"disabled": true
						},
						{
							"key": "search",
							"value": "",
							"description": "Pencarian nama_elemen_data",
							"disabled": true
						},
						{
							"key": "instansi",
							"value": "",
							"description": "Filter berdasarkan ID Instansi (Produsen)",
							"disabled": true
						},
						{
							"key": "bidang",
							"value": "",
							"description": "Filter berdasarkan ID Bidang Urusan",
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Visual Stats",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{API_TOKEN}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{BASE_URL}}/api/v1/visual-stats",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"api",
						"v1",
						"visual-stats"
					]
				},
				"description": "Mengambil data ringkasan statistik (total, tersedia, belum tersedia) dan data untuk grafik (share per kategori)."
			},
			"response": []
		},
		{
			"name": "Get Producer Stats",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{API_TOKEN}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{BASE_URL}}/api/v1/producer-stats?produsen_id=P00000072",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"api",
						"v1",
						"producer-stats"
					],
					"query": [
						{
							"key": "produsen_id",
							"value": "P00000072",
							"description": "ID Produsen / OPD (contoh: P00000072)"
						}
					]
				},
				"description": "Mengembalikan ringkasan statistik (total, tersedia, belum tersedia) serta detail Bidang Urusan dan Kelompok Data Sektoral untuk produsen tertentu."
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "https://porsada.solokkota.go.id",
			"type": "string"
		},
		{
			"key": "API_TOKEN",
			"value": "1|xxxxxxxxxxxxxxx",
			"type": "string"
		}
	]
}
