Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 610 Bytes

config.md

File metadata and controls

19 lines (14 loc) · 610 Bytes

Install And Configure

Install using composer (composer require kleijnweb/swagger-bundle). You want to check out the release page to ensure you are getting what you want and optionally verify your download.

Add Swagger-based routing to your app, for example:

test:
  resource: "config/yourapp.yml"
  type: swagger

The path here is relative to the swagger.document.base_path configuration option. The above example would require something like this in your config:

swagger:
  document: 
    base_path: "%kernel.root_dir%"