Laravel Api Tester
Live demo
Try it out: laravel-api-tester.asva.by
Installation
Require this package with composer:
composer require asvae/laravel-api-tester
After updating composer, add the ServiceProvider to the providers array in config/app.php
Asvae\ApiTester\ServiceProvider::class,
That's it. Go to [your site]/api-tester
and start testing routes.
Config
By default, the package is bound to APP_DEBUG
.env
value. But you can easily override it. Just publish config:
php artisan vendor:publish --provider="Asvae\ApiTester\ServiceProvider"
And edit config/api-tester.php
as you please.
Features
- Display routes for your application.
- Live search and sortable columns.
- Filter out routes in config.
- CSRF token is handled for you.
- Define request body in JSON editor.
- Preview response depending on type (html or json).
- Material design lite as theme.
- Lightweight and no dependencies (except on laravel).
Feedback
Don't hesitate to raise an issue if something doesn't work or you have a feature request. You're welcome to.
Timeline
- 1.0.10 (19.07.2016) - add filters (thanks greabock).
Tests
We do unit tests as well as integration tests, which is rare for laravel libraries. Check badges on the top for details
Licence
MIT