nastuzzi-samy / api-tester

Laravel 的 API 测试器

安装数: 2,523

依赖项: 0

建议: 0

安全性: 0

星标: 0

关注者: 3

分支: 38

语言:HTML

v1.1.0 2018-12-05 00:51 UTC

This package is auto-updated.

Last update: 2024-09-05 19:50:16 UTC


README

StyleCI Packagist Total Downloads Pull request welcome

laravel-api-tester 启发。

文档 | 中文文档

屏幕截图

wx20170809-164424

安装

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

$ 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) 下授权。