Get Statistik Umur
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 : /statistik/umur
Response : 200 OK
[ { "umur": "0-4", "jumlah": 9 }, { "umur": "5-9", "jumlah": 8 }, { "umur": "10-14", "jumlah": 12 }, { "umur": "15-19", "jumlah": 7 }, { "umur": "20-24", "jumlah": 9 }, { "umur": "25-29", "jumlah": 8 }, { "umur": "30-34", "jumlah": 11 }, { "umur": "35-39", "jumlah": 12 }, { "umur": "40-44", "jumlah": 8 }, { "umur": "45-49", "jumlah": 9 }, { "umur": "50-59", "jumlah": 7 }, { "umur": "60-69", "jumlah": 0 }, { "umur": "Diatas 70", "jumlah": 0 }]
Response : 404 NOT FOUND
Not Found
Response : 500 ERROR
Internal Server Error