dedermus/api-tester

open-admin 的 API 测试工具

2.0.2 2024-09-05 08:33 UTC

This package is not auto-updated.

Last update: 2024-10-03 08:46:28 UTC


README

StyleCI Packagist Total Downloads Pull request welcome

文档

截图

extention-api-tester

安装

$ composer require dedermus/api-tester

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

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

$ php artisan admin:import api-tester

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

配置

api-tester 支持三种配置,打开 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) 下授权。