雪软 / oaapi-tester
open-admin 的API测试器
0.01
2023-10-02 15:17 UTC
Requires
- php: >=7.0.0
- snowsoft/open-admin: ~v0.01
Requires (Dev)
- laravel/laravel: ~5.5
- phpunit/phpunit: ~6.0
README
屏幕截图
安装
$ composer require snowsoft/oaapi-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) 下许可。