Swagger UI assets for Yii2., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist machour/yii2-swagger-ui "*"
or add, (*4)
"machour/yii2-swagger-ui": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, you can register the Swagger UI assets in your application by doing:, (*6)
machour\yii2\swagger\ui\SwaggerUiAsset::register($this);
A complete layout structure is available in the views
directory for a complete working Swagger UI interface like their Pet Store., (*7)
This documentation is available online, (*8)