Marvel API with Laravel
The application validates all inputs and sends requests to the appropriate Marvel API endpoint. The endpoint response is dealt with appropriately and a CSV is downloaded, and formatted.
Example use case
If you enter "hulk" and select comics, you get the top 40 comics ordered by the on sale date.
An example output can be found in "Marvel-API.csv".
Files To Note
- Route: app/Http/routes.php
- Controller: app/Http/Controllers/apiController.php
- View: resources/views/main.blade.php
- Test: tests/RouteTest.php
How to run
- 'composer install' or 'php artisan install'
- 'composer serve' or 'php artisan serve'
- The application will be running on http://localhost:8000/
Testing
Run this command after install: ./vendor/bin/phpunit