Download the PHP package nicofuma/swagger-bundle without Composer
On this page you can find all versions of the php package nicofuma/swagger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nicofuma/swagger-bundle
More information about nicofuma/swagger-bundle
Files in nicofuma/swagger-bundle
Package swagger-bundle
Short Description A bundle integrating swagger to validate Requests and Responses
License MIT
Informations about the package swagger-bundle
NicofumaSwaggerBundle
Description
This bundle integrates Swagger in Symfony.
Currently, it supports the following features:
- Automatic validation of all incoming requests based on the Swagger definition (including headers and query string)
- Configuring multiple API with different swagger files using configuration
- FOSRestBundle integration: automatic configuration of the ParamFetcher
- Behat integration: context to validate the response
Installation
Add the required package using composer.
Stable version
Bleeding-edge version
Enabling the bundle
Add the bundle to your AppKernel.
Configuration
pattern
any url matching this pattern will be tested against the swagger_file
swagger_file
swagger file to use for this API. Can be either an bsolute path, a path relative to %kernel.root_dir%/Resources/
or a bundle resource @MyBundle/Dir/swagger.json
strict
whether or not an exception must be thrown if the path does not match any definition in the swagger file
Configuration reference
Behat integration
Add the following context in your behat.yml file
Contributing
NicofumaSwaggerBundle is an open source project. If you'd like to contribute, please do.
License
This library is under the MIT license. For the full copyright and license information, please view the [LICENSE]() file that was distributed with this source code.
All versions of swagger-bundle with dependencies
symfony/framework-bundle Version ^2.3|^3.0
symfony/dependency-injection Version ^2.3|^3.0
symfony/event-dispatcher Version ^2.3|^3.0
symfony/http-foundation Version ^2.4|^3.0
symfony/validator Version ^2.3|^3.0
fr3d/swagger-assertions Version ^0.7.0