Skip to content

yarcode/yii2-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

yii2-swagger

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

MIT

Copyright (c) 2016 lichunqiang, YarCode

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages