open-admin-ext / api-tester
open-admin的API测试器
v1.0.2
2022-07-01 09:33 UTC
Requires
- php: >=7.0.0
- open-admin-org/open-admin: ~1.0
Requires (Dev)
- laravel/laravel: ~5.5
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-08-29 06:16:49 UTC
README
截图
安装
$ 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)下授权。