Skip to content

Instantly share code, notes, and snippets.

@bkintanar
Created December 5, 2019 02:08
Show Gist options
  • Save bkintanar/51a082d5b63333c7a3b5bbf0d7d47bcc to your computer and use it in GitHub Desktop.
Save bkintanar/51a082d5b63333c7a3b5bbf0d7d47bcc to your computer and use it in GitHub Desktop.
GET /api/regions
{
"data": [
{
"code": "010000000",
"name": "REGION I (ILOCOS REGION)",
"population": 5026128
},
{
"code": "020000000",
"name": "REGION II (CAGAYAN VALLEY)",
"population": 3451410
},
{
"code": "030000000",
"name": "REGION III (CENTRAL LUZON)",
"population": 11218177
},
{
"code": "040000000",
"name": "REGION IV-A (CALABARZON)",
"population": 14414774
},
{
"code": "170000000",
"name": "MIMAROPA REGION",
"population": 2963360
},
{
"code": "050000000",
"name": "REGION V (BICOL REGION)",
"population": 5796989
},
{
"code": "060000000",
"name": "REGION VI (WESTERN VISAYAS)",
"population": 7536383
},
{
"code": "070000000",
"name": "REGION VII (CENTRAL VISAYAS)",
"population": 7396898
},
{
"code": "080000000",
"name": "REGION VIII (EASTERN VISAYAS)",
"population": 4440150
},
{
"code": "090000000",
"name": "REGION IX (ZAMBOANGA PENINSULA)",
"population": 3629783
},
{
"code": "100000000",
"name": "REGION X (NORTHERN MINDANAO)",
"population": 4689302
},
{
"code": "110000000",
"name": "REGION XI (DAVAO REGION)",
"population": 4893318
},
{
"code": "120000000",
"name": "REGION XII (SOCCSKSARGEN)",
"population": 4545276
},
{
"code": "130000000",
"name": "NATIONAL CAPITAL REGION (NCR)",
"population": 12877253
},
{
"code": "140000000",
"name": "CORDILLERA ADMINISTRATIVE REGION (CAR)",
"population": 1722006
}
],
"links": {
"first": "https://psgc.localhost/api/regions?page=1",
"last": "https://psgc.localhost/api/regions?page=2",
"prev": null,
"next": "https://psgc.localhost/api/regions?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"path": "https://psgc.localhost/api/regions",
"per_page": 15,
"to": 15,
"total": 17
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment