Does anyone know how to convert a API based on Symfony2 to Yaml format?
I would like to use it for Swagger.
Up until now I was using the bundle NelmioApiDocBundle
Thanks in advance
Does anyone know how to convert a API based on Symfony2 to Yaml format?
I would like to use it for Swagger.
Up until now I was using the bundle NelmioApiDocBundle
Thanks in advance
if you using a Symfony 2.* and written all api's using Nelmio @ApiDoc
then yes you should add this routing inside of routing.yml
nelmio_api_swagger:
resource: "@NelmioApiDocBundle/Resources/config/swagger_routing.yml"
prefix: /api-docs
and run php app/console api:swagger:dump
and then access using /api-docs
To better understanding click here