yarcode / yii2-swagger
Swagger intergation with Yii2
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/swagger-ui: ~2.1
- symfony/yaml: ~3.0
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2024-11-09 20:50:36 UTC
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