-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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](https://github.com/nelmio/NelmioApiDocBundle), | ||
the most popular library for Open API Specification in the [Symfony](https://github.com/symfony) ecosystem. | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require --dev ferror/openapi-coverage | ||
``` | ||
|
||
```php | ||
// bundles.php | ||
|
||
return [ | ||
Ferror\OpenapiCoverage\Symfony\Bundle::class => ['dev' => true, 'test' => true], | ||
]; | ||
``` | ||
|
||
## usage | ||
|
||
```bash | ||
php bin/console ferror:check-openapi-coverage | ||
``` | ||
|
||
## Example Result | ||
|
||
``` | ||
Open API coverage: 75% | ||
+- Missing documentation -+ | ||
| path | method | | ||
+---------------+---------+ | ||
| /products/:id | get | | ||
+---------------+---------+ | ||
``` |