|
1 | 1 | # PSGC (Philippine Standard Geographic Code) |
2 | 2 | API used for listing all the region, province, city, municipality, and barangay. All data came from <a href='https://psa.gov.ph' target='_blank'>Philippine Statistics Authority</a>. This API includes the total population for each regions etc. and other information. |
3 | 3 |
|
4 | | -# ENDPOINTS |
5 | | -```https://psgc-api.herokuapp.com```<br/> |
| 4 | +# ENDPOINTS (v1.1) |
| 5 | +All Region - ```/api/region```<br/> |
| 6 | +Specific Region - ```/api/region/:code```<br/> |
| 7 | +List of Province in specific Region - ```/api/region/:code/province```<br/><br/> |
| 8 | +All Province - ```/api/province```<br/> |
| 9 | +Specific Province - ```/api/province/:code```<br/> |
| 10 | +List of City in specific Province - ```/api/province/:code/city```<br/> |
| 11 | +List of Municipality in specific Province - ```/api/province/:code/municipality```<br/> |
| 12 | +All City - ```/api/city```<br/> |
| 13 | +Specific City - ```/api/city/:code```<br/> |
| 14 | +List of Barangay in specific City - ```/api/city/:code/barangay```<br/> |
| 15 | +All Municipality - ```/api/municipality```<br/> |
| 16 | +Specific Municipality - ```/api/municipality/:code```<br/> |
| 17 | +List of Barangay in specific Municipality - ```/api/municipality/:code/barangay```<br/> |
| 18 | +All Barangay - ```/api/barangay```<br/> |
| 19 | +Specific Barangay - ```/api/barangay/:code```<br/> |
| 20 | + |
| 21 | +# ENDPOINTS (V1) |
6 | 22 | REGION - ```/v1/region```<br/> |
7 | 23 | PROVINCE - ```/v1/province```<br/> |
8 | 24 | CITY - ```/v1/city```<br/> |
9 | 25 | MUNICIPALITY - ```/v1/municipality```<br/> |
10 | 26 | BARANGAY - ```/v1/barangay```<br/> |
| 27 | + |
11 | 28 | # SETUP |
12 | 29 | ```$ npm install``` |
13 | 30 |
|
14 | 31 | # START DEV SERVER |
15 | 32 | ```$ npm run dev``` |
16 | 33 |
|
17 | 34 | # PLANS |
18 | | -- [ ] fix the python script to merge all json according to appropriate codes |
19 | | -- [ ] automate uploading of json file once there's a new PSGC Excel File |
20 | | -- [ ] fix all the endpoints |
| 35 | +- [x] fix all the endpoints |
| 36 | +- [x] add rate limit |
| 37 | +- [ ] create the frontend with docs |
21 | 38 | - [ ] move to a proper server |
22 | | -- [ ] add rate limit |
23 | 39 |
|
24 | 40 | Made with 💜 by Justin Balaguer |
25 | 41 | <a href='twitter.com/ojintoji/'>Twitter</a> |
26 | | -<a href='facebook.com/ojintojix/'>Facebook</a> |
| 42 | +<a href='facebook.com/ojintojix/'>Facebook</a> |
| 43 | +###### dm me on any social media above to get the json files |
0 commit comments