This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
All requests are GET
requests to /api/council/[council]
. Please see specific codebases for exact requests
For most requests, use your UPRN which can be found here: https://uprn.uk/
GET https://bin-collection-api.vercel.app/api/council/cheshire_east?uprn=XXXXXXX
GET https://bin-collection-api.vercel.app/api/council/stockport?uprn=XXXXXXX
GET https://bin-collection-api.vercel.app/api/council/east_cambridgeshire?uprn=XXXXXXX
- Create a file under
src/helpers
for your chosen council to perform the page parsing logic - Add the parse to the imports under
src/helpers/index.js
and export it - Import the helper to
src/pages/api/council/[council].js
and add logic to the switch statement