在Laravel中使用Markdown语法轻松编写API文档
composer require dean/api-doc
php artisan vendor:publish --tag=dean-apidoc
http://your-domain.com/doc
注:当APP_ENV
环境变量设为local
,dev
时才能访问该路由
storage/doc/config.json
[
{
"path": "shop",
"name": "商城",
"children": [
{
"path": "product",
"name": "商品模块"
}
]
},
...
]
它将会搜索/storage/doc/shop/product目录下的所有.md后缀文件,并以商城->商品模块
的层级结构显示在左侧列表中。
Licensed under The MIT License (MIT).