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.
| 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 |
- 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.
Install dependancies
npm installoryarn
Start dev server with file change watch
npm run serveoryarn serve
Run linter
npm run lintoryarn lint
Run Tests
npm run testoryarn test
Run coverage
npm run coverageoryarn coverage