artarts36 / swagger-merger
Swagger Merger
Installs: 5 468
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- symfony/yaml: *
Requires (Dev)
README
Installation
composer require artarts36/swagger-merger
Usage:
use ArtARTs36\SwaggerMerger\Info; use ArtARTs36\SwaggerMerger\Merger; Merger::byJsonFile('api-docs.json') ->addJsonFile('package-api-docs.json') ->addYamlFile('package-api-docs.yml') ->addYamlFileWithPrefixes('package2-api-docs.yml', function (Info $info) { $info->setDescriptionPrefix('Package 2 :: '); $info->setTagsPrefix('Package 2 :: '); }) ->saveAsJson();