A web scraped API that provides online petitions data in NZ
- This fetches a list of petitions with the given status.
URL params
params | type | description | required |
---|---|---|---|
status | string | Petition status. Can be open, closed, presented | Required |
Query params
params | type | description | required |
---|---|---|---|
page | integer | Page number. Each page show 50 items at max | Optional. Default = 1 |
{
"status": "open",
"currentPage": 1,
"countPerPage": 50,
"totalPage": 3,
"totalNumber": 118,
"petitions": [
{
"id": 99776,
"requester": "Kim Hyunwoo",
"title": "Express concern to South Korea at actions of diplomat",
"documentId": "PET_99776",
"status": "open",
"closingDate": "21 Sep 2020",
"signatures": 3
},
...
]
}
- This fetches a petition item with the given id.
URL params
params | type | description | required |
---|---|---|---|
id | integer | Petition id (if document id is PET_99776, just search by 99776) | Requierd |
{
"id": 99776,
"requester": "Kim Hyunwoo",
"title": "Express concern to South Korea at actions of diplomat",
"documentId": "PET_99776",
"status": "open",
"closingDate": "21 Sep 2020",
"signatures": 3
}
- getItemList fix
- preflight request issue fix
- API pagination
- Performance enhancement using cache
- Swagger
- Unit tests
- Deployment
- Split presented and reported petitions
- 404 page
- index page
- husky, linting
- TravisCI
- Clean dependencies
- Add limit query to allow users to customise