kekaadrenalin/yii2-swagger

v1.0.8 2023-05-29 14:08 UTC

This package is auto-updated.

Last update: 2024-03-29 15:46:05 UTC


README

First, please make sure you have some basic concepts of Swagger OpenAPI and Swagger UI.

Then you can start with following steps:

  1. Install kekaadrenalin/yii2-swagger extension
composer require kekaadrenalin/yii2-swagger --dev
  1. Add following lines to config/web.php
  //config/web.php
  
  $config = [
      ...
      'modules' => [
        'swagger' => [
            'class' => 'kekaadrenalin\swagger\Module',
        ],
      ],
      ...
  ]
  1. Add following lines to config/params.php
    'swagger'=>[
        'scan_dir'=>[
            'app/controllers',
        ]
    ]