shoxabbos/yii2-apicrud

创建API文档

安装次数: 15

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

类型:yii2-extension

v1.0 2017-08-04 07:33 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:31:12 UTC


README

创建API文档

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一

php composer.phar require --prefer-dist shoxabbos/yii2-apicrud "*"

或将以下内容添加到您的 composer.json 文件的 require 部分中。

"shoxabbos/yii2-apicrud": "*"

示例代码:

演示

alt text

用法

安装扩展后,只需在您的代码中通过以下方式使用它:

1: 将以下代码添加到 config/web.php 文件中

'modules' => [
    'apidoc' => [
        'class' => 'shoxabbos\apicrud\Module'
    ]
],

2: 您可以使用提供的迁移脚本来从您的 Yii 控制台运行数据库结构创建

php yii migrate --migrationPath=@vendor/shoxabbos/yii2-apicrud/migrations

开发团队 http://www.qwerty.uz