zhan3333/api-tester

用于 Laravel 和 Dingo API 的 API 测试器

v1.0.3 2017-11-27 07:58 UTC

This package is auto-updated.

Last update: 2024-09-14 20:30:36 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 支持三种配置,打开 config/admin.php 找到 extensions

    'extensions' => [
    
        'api-tester' => [
        
            // route prefix for APIs
            'prefix' => '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);
            },
        ]
    ]

文档使用

使用 Dingo API 文档: https://github.com/dingo/api/wiki/API-Blueprint-Documentation

 * @Parameters({
 *      @Parameter("contract_file_id", description="文件id")
 * })

许可

许可协议为 MIT 许可协议 (MIT).