ferror/openapi-coverage
最新稳定版本:0.1.0-beta
Composer 安装命令:
composer require ferror/openapi-coverage
包简介
README 文档
README
Open API Coverage Calculator Symfony Bundle
The Open API Coverage Calculator Symfony Bundle enables you to track another system metric - The API Documentation Coverage. The library extracts your application API endpoints via Symfony Routing and checks them against NelmioAPIDocBundle, the most popular library for Open API Specification in the Symfony ecosystem.
Installation
composer require --dev ferror/openapi-coverage
// bundles.php return [ Ferror\OpenapiCoverage\Symfony\Bundle::class => ['dev' => true, 'test' => true], ];
Usage
php bin/console ferror:check-openapi-coverage
You can also specify the --threshold or (--t) option to define coverage level below which the command will fail.
php bin/console ferror:check-openapi-coverage --threshold 0.70
Example Result
Open API coverage: 75%
+- Missing documentation -+
| path | method |
+---------------+---------+
| /products/:id | get |
+---------------+---------+
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-31