open-admin-ext/api-tester

Api tester for open-admin

v1.0.2 2022-07-01 09:33 UTC

This package is auto-updated.

Last update: 2024-04-29 05:05:50 UTC


README

StyleCI Packagist Total Downloads Pull request welcome

Documentation

Screenshot

extention-api-tester

Installation

$ composer require open-admin-ext/api-tester

$ 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).