dean / laravel-api-doc
Installs: 289
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Requires
- erusev/parsedown: ^1.7
- laravel/framework: ^5.5
This package is auto-updated.
Last update: 2025-03-04 19:28:31 UTC
README
在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后缀文件,并以商城->商品模块
的层级结构显示在左侧列表中。
License
Licensed under The MIT License (MIT).