Download the PHP package php-solution/nelmio-apidoc-yaml-bundle without Composer
On this page you can find all versions of the php package php-solution/nelmio-apidoc-yaml-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-solution/nelmio-apidoc-yaml-bundle
More information about php-solution/nelmio-apidoc-yaml-bundle
Files in php-solution/nelmio-apidoc-yaml-bundle
Package nelmio-apidoc-yaml-bundle
Short Description This bundle provides an integration of NelmioApiDocBundle with yaml extractor
License MIT
Informations about the package nelmio-apidoc-yaml-bundle
NelmioApiDocYamlBundle
This bundle allows you to use NelmioApiDocBundle and store all apidocs on yml config files.
Bundle includes 2 new apidoc extractors:
- Chain extractor
- Yaml extractor.
Bundle change definition for standard api doc extractor and now @nelmio_api_doc.extractor.api_doc_extractor definition of PhpSolution\NelmioApiDocYamlBundle\Extractor\ChainApiDocExtractor.
You can use standard ApiDocExtractor with @nelmio_api_doc.extractor.api_doc_extractor.phpdoc service name.
Chain extractor use Yaml extractor and phpdoc extractor.
Yaml extractor check all @Bundle\Resources\config\api_doc.yml and create config for apidoc.
All configuration parameters you can find on https://github.com/nelmio/NelmioApiDocBundle documentation.
Using
Example of yml config: `
If you want to define input options without creation new class for apidoc you can use like this: `
If yo want to define output parameters without creation new class for apidoc you can use like this: `
Config
1) Add route to app/config/routing.yml
2) If you want change default setting of bundle you can change it on app/config/config.yml:
Installing
- Add to your composer.json `
- Add to AppKernel.php: `
- run: `
TODO
- Coverage more than 80%