Swagger Support --------------- It is possible to make your application produce Swagger-compliant JSON output based on `@ApiDoc` annotations, which can be used for consumption by [swagger-ui](https://github.com/wordnik/swagger-ui). ### Annotation options A couple of properties has been added to `@ApiDoc`: To define a __resource description__: ```php Vendor.UserBundle.Entity.User` You can also change the `model_naming_strategy` in the configuration to `last_segment_only`, if you want model IDs to be just the class name minus the namespaces (`Vendor\UserBundle\Entity\User => User`). This will not afford you the guarantee that model IDs are unique, but that would really just depend on the classes you have in use. --- [back to index](index.md)