api-doc
api-doc copied to clipboard
The ThinkPHP5 Api Doc Package
 author单词拼写错误
您好,我安装了1.7.1版本,可是提交请求时候,DocController控制器$this->request->root()一直获取不到任何数据
新手自己适配不了
D:\software\workspace_PHP\huangShop>composer update weiwei/api-doc Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 4 installs, 0 updates, 0 removals - Installing topthink/think-installer (v2.0.0): Loading from cache - Installing...
树形目录默认折叠
希望左侧的树形导航栏默认是折叠上的
比如接口参数我要接收名为date的参数,接口文档会把名字转义成日期。
解决办法在 #addParam 执行click事件之前移除所有事件 info.html **$("#addParam").off().click**(function(){.....});
https://github.com/thinkcmf/thinkcmf 框架的地址 接入了api https://github.com/thinkcmf/thinkcmfapi 试了一下不知道如何接入,还烦请指导下
比如我在route.php中使用了域名路由 Route::domain('admin.thinkphp.cn','admin'); Route::domain('blog.thinkphp.cn','blog'); Route::domain('www.thinkphp.cn','www'); 这时我想生成www模块下api文档,就得注册路由 Route::get('doc/assets', "\\Api\\Doc\\DocController@assets",['deny_ext'=>'php|.htacess','domain'=>'www'],[],'www'); Route::get('doc/list', "\\Api\\Doc\\DocController@getList",['domain'=>'www'],[],'www'); Route::get('doc/info', "\\Api\\Doc\\DocController@getInfo",['domain'=>'www'],[],'www'); Route::any('doc/debug', "\\Api\\Doc\\DocController@debug",['domain'=>'www'],[],'www'); Route::get('doc', "\\Api\\Doc\\DocController@index",['domain'=>'www'],[],'www'); 注意:Route::get('doc', "\\Api\\Doc\\DocController@index",['domain'=>'www'],[],'www');这句一定要放到最后