Skip to content

johnnieblows/bin-collection-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Usage

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/

Cheshire East

GET https://bin-collection-api.vercel.app/api/council/cheshire_east?uprn=XXXXXXX

Stockport

GET https://bin-collection-api.vercel.app/api/council/stockport?uprn=XXXXXXX

East Cambridgeshire

GET https://bin-collection-api.vercel.app/api/council/east_cambridgeshire?uprn=XXXXXXX

Contribution

  • 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