An open API service indexing awesome lists of open source software.

https://github.com/lovemo/build_api

根据php文件相关代码注释,自动生成对应的接口文档和eolinker支持的格式文档,可导入到eolinker网站中
https://github.com/lovemo/build_api

api automatic documentation eolinker markdown php restful-api thinkphp5

Last synced: 3 months ago
JSON representation

根据php文件相关代码注释,自动生成对应的接口文档和eolinker支持的格式文档,可导入到eolinker网站中

Awesome Lists containing this project

README

          

# build_api
根据php文件相关代码注释,自动生成对应的接口文档和eolinker支持的格式文档,可导入到eolinker网站中

# core code
```php
#!/usr/bin/env php
[
// 生成目录
'build' => __DIR__ . '/demo.md',
'style' => [
'func' => [
'name' => '##',
'mark' => '####',
]
],
],

// eolinker样式
'eolinker' => [
// 生成目录
'build' => __DIR__ . '/demo.export',
],

// 模块所在路径
'path' => __DIR__ . '/../../../',

// 定义模块的自动生成
'module' => [
'api' => [
// 定义控制器的自动生成
[
'controller' => 'Test.php',
// [] 为所有
'action' => ['q', 'ww'],
]

],
],

];
```