ruanjiajia / yii2_apidoc
api doc for Yii2
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: 2.0.11.2
This package is not auto-updated.
Last update: 2025-01-05 04:29:12 UTC
README
用配置生成接口文档
'modules' => [ 'route'=>[ 'class'=>'Route\Module', 'ignore'=>['api'], ], ]
'modules' => [ 'route'=>[ 'class'=>'Route\Module', 'ignore'=>['api'], 'show_modules'=>'api' ], ]
/** * api文档接口怎么生成? * @param string $version api版本 * @param string $sign 签名 * @param string $page 用于分页 最小是1 * @desc 这个是描述哦 * @method POST * @return string msg 消息解释 * @return int code 0表示正确 */ public function actionIndex(){ }