Skip to content

A JSON API to fetch traffic fines for any KA registered vehicle. Hosted on Heroku the api enforces No CORS Header blocking!

License

Notifications You must be signed in to change notification settings

nikhilnagaraju/kar-traffic-fines

Repository files navigation

kar-traffic-fines

Github CI dependencies Status devDependencies Status Conventional Commits

Simple JSON API to fetch traffic fines for any KA registered vehicle. Can consider this as a simple proxy without CORS Blocking. Hosted on Heroku.

Usage

Title Get Traffic Fines
Endpoint https://kar-traffic-fines.herokuapp.com
Path /fines
Method GET
URL params Required: registration=KAXX(AZ)XXXX
Error response
Invalid Registration, Missing Registration param
status code: 400
content: {status: 'error',message: 'A valid 'registration' param in 'KAXX(AZ)XXXX' format is required.'}
Example request https://kar-traffic-fines.herokuapp.com/fines?registration=KA02AB0123

Why is this API useful?

  • No CORS Header blocking! Can be used on any client app, sites.
  • JSON API to fetch/check fines. While you may find other APIs which gives a data in not-so-usable format.

Development

Install dependancies

  • npm install or yarn

Start dev server with file change watch

  • npm run serve or yarn serve

Run linter

  • npm run lint or yarn lint

Run Tests

  • npm run test or yarn test

Run coverage

  • npm run coverage or yarn coverage

About

A JSON API to fetch traffic fines for any KA registered vehicle. Hosted on Heroku the api enforces No CORS Header blocking!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published