yarcode/yii2-swagger
Composer 安装命令:
composer require yarcode/yii2-swagger
包简介
Swagger intergation with Yii2
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yarcode/yii2-swagger
or add
"yarcode/yii2-swagger": "*"
Usage
TODO: It should be described in detail.
public function init() { $this->controllerMap = [ 'swagger' => [ 'class' => 'YarCode\Yii2\Swagger\SwaggerController', 'host' => 'http://some.host', 'basePath' => '/base/path/to/swagger/doc',, 'templateFile' => '/@api/path/to/swagger/template.yaml', 'includePaths' => [ '/include/path/first', '/include/path/second', ], ] ]; parent::init(); }
License
Copyright (c) 2016 lichunqiang, YarCode
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-05