Skip to content

Commit

Permalink
rename swagger actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Oct 16, 2017
1 parent a3dd037 commit 5304629
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions SwaggerApiAction.php → OpenAPIRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
use yii\web\Response;

/**
* Class SwaggerApiAction
* Class OpenAPIRenderer is responsible for generating the JSON spec.
*
* @package yii2mod\swagger
* @package yii2mod\swagger\actions
*/
class SwaggerApiAction extends Action
class OpenAPIRenderer extends Action
{
/**
* @var string|array|\Symfony\Component\Finder\Finder The directory(s) or filename(s).
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class SiteController extends Controller
{
return [
'docs' => [
'class' => 'yii2mod\swagger\SwaggerAction',
'class' => 'yii2mod\swagger\SwaggerUIRenderer',
'restUrl' => Url::to(['site/json-schema']),
],
'json-schema' => [
'class' => 'yii2mod\swagger\SwaggerApiAction',
'class' => 'yii2mod\swagger\OpenAPIRenderer',
// Тhe list of directories that contains the swagger annotations.
'scanDir' => [
Yii::getAlias('@app/controllers'),
Expand Down
4 changes: 2 additions & 2 deletions SwaggerAction.php → SwaggerUIRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use yii\base\Action;

/**
* Class SwaggerAction
* Class SwaggerUIRenderer renders the UI (HTML/JS/CSS).
*
* @package yii2mod\swagger
*/
class SwaggerAction extends Action
class SwaggerUIRenderer extends Action
{
/**
* @var string the rest url configuration
Expand Down

0 comments on commit 5304629

Please sign in to comment.