Skip to content

Laravel 5.5 application that consumes NHTSA API, collecting crash ratings and displaying then through an API.

License

Notifications You must be signed in to change notification settings

mbemvieira/crash-ratings-api

Repository files navigation

crash-ratings-api

Laravel 5.5 API that consumes NHTSA API (Link Here), collecting crash ratings and displaying then through an API.

Environment Requirements

  • PHP >= 7.0.0
    • OpenSSL PHP Extension
    • PDO PHP Extension
    • Mbstring PHP Extension
    • Tokenizer PHP Extension
    • XML PHP Extension
  • Composer
  • Nginx/Apache

You can use the current version of Homestead as well.

Installation

Clone this repo into your machine:

git clone https://github.com/mbemvieira/crash-ratings-api

Inside your repo folder, run the following commands:

composer install
cp .env.testing .env
php artisan key:generate

PHPUnit tests

Inside project's folder, you can run PHPUnit tests with:

./vendor/bin/phpunit

API Reference

GET <APP-HOSTNAME>/vehicles/<MODEL YEAR>/<MANUFACTURER>/<MODEL>
POST <APP-HOSTNAME>/vehicles
GET <APP-HOSTNAME>/vehicles/<MODEL YEAR>/<MANUFACTURER>/<MODEL>?withRating=true

About

Laravel 5.5 application that consumes NHTSA API, collecting crash ratings and displaying then through an API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published