open-admin-ext/api-tester

open-admin的API测试器

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

This package is auto-updated.

Last update: 2024-08-29 06:16:49 UTC


README

StyleCI Packagist Total Downloads Pull request welcome

文档

截图

extention-api-tester

安装

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

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

然后运行以下命令导入菜单和权限

$ php artisan admin:import api-tester

最后打开https:///admin/api-tester

配置

api-tester支持3种配置,打开config/admin.php查找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);
            },
        ]
    ]

许可证

MIT许可证(MIT)下授权。