futuretek/yii2-gii-openapi-server

Generator for OpenAPI server

1.2.2 2024-01-26 11:01 UTC

This package is auto-updated.

Last update: 2024-03-26 11:18:26 UTC


README

Currently, only generating schema, enums and controller/action templates are done.

Installation

add to require-dev section of composer.json:

"futuretek/yii2-gii-openapi-server": "^1.0.0"

Usage

Extension has automatic configuration via futuretek/yii2-composer package. See composer.json - extra:yii-config:web

Or you can add the configuration manually:

'modules' => [
    'gii' => [
        'class' => 'yii\gii\Module',
        'allowedIPs' => ['127.0.0.1', '::1'],
        'generators' => [
            'openapi' => [
                'class' => 'futuretek\gii\openapi\server\Generator',
            ],
        ]
    ],
]