We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'scanOptions' => [ 'processor' => [], ],
public function actions() { return [ //The document preview addesss:http://api.yourhost.com/site/doc 'doc' => [ 'class' => 'light\swagger\SwaggerAction', 'restUrl' => \yii\helpers\Url::to(['/site/api'], true), ], //The resultUrl action. 'api' => [ 'class' => 'light\swagger\SwaggerApiAction', //The scan directories, you should use real path there. 'scanDir' => [ Yii::getAlias('@api/modules/v1/swagger'), Yii::getAlias('@api/modules/v1/controllers'), Yii::getAlias('@api/modules/v1/models'), Yii::getAlias('@api/models'), ], 'scanOptions' => [ 'processor' => [], ], ], ]; }
The text was updated successfully, but these errors were encountered:
can you make a PR? I have been developing without PHP for a long time
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: