API tester for laravel-admin
Switch branches/tags
Clone or download
Latest commit 5884bb1 Apr 27, 2018
Permalink
Failed to load latest commit information.
resources first commit Aug 7, 2017
src Apply fixes from StyleCI Sep 28, 2017
.gitignore first commit Aug 7, 2017
LICENSE first commit Aug 7, 2017
README.md Update README.md [skip ci] Sep 28, 2017
composer.json Update composer.json Apr 27, 2018

README.md

API tester for laravel-admin

StyleCI Packagist Total Downloads Pull request welcome

Inspired by laravel-api-tester.

Documentation | 中文文档

Screenshot

wx20170809-164424

Installation

$ composer require laravel-admin-ext/api-tester -vvv

$ php artisan vendor:publish --tag=api-tester

Then last run flowing command to import menu and permission:

$ php artisan admin:import api-tester

Finally open http://localhost/admin/api-tester.

Configuration

api-tester supports 3 configuration, open config/admin.php find extensions:


    'extensions' => [
    
        'api-tester' => [
        
            // route prefix for APIs
            'prefix' => 'api',

            // auth guard for api
            'guard'  => 'api',

            // If you are not using the default user model as the authentication model, set it up
            'user_retriever' => function ($id) {
                return \App\User::find($id);
            },
        ]
    ]

License

Licensed under The MIT License (MIT).