NelmioApiDocBundle ================== The **NelmioApiDocBundle** bundle allows you to generate a decent documentation for your APIs. ## Installation ## Register the namespace in `app/autoload.php`: // app/autoload.php $loader->registerNamespaces(array( // ... 'Nelmio' => __DIR__.'/../vendor/bundles', )); Register the bundle in `app/AppKernel.php`: // app/AppKernel.php public function registerBundles() { return array( // ... new Nelmio\ApiDocBundle\NelmioApiDocBundle(), ); } Import the routing definition in `routing.yml`: # app/config/routing.yml NelmioApiDocBundle: resource: "@NelmioApiDocBundle/Resources/config/routing.yml" prefix: / Enable the bundle's configuration in `app/config/config.yml`: # app/config/config.yml nelmio_api_doc: ~ ## Usage ## The main problem with documentation is to keep it up to date. That's why the **NelmioApiDocBundle** uses introspection a lot. Thanks to an annotation, it's really easy to document an API method. ### The ApiDoc() annotation ### The bundle provides an `ApiDoc()` annotation for your controllers: ``` php