2016-12-29 13:35:36 +01:00
|
|
|
NelmioApiDocBundle
|
|
|
|
==================
|
2016-11-18 18:00:09 +01:00
|
|
|
|
2020-12-22 11:27:56 +01:00
|
|
|
[![Build Status](https://img.shields.io/github/workflow/status/nelmio/NelmioApiDocBundle/CI?style=flat-square)](https://github.com/nelmio/NelmioApiDocBundle/actions?query=workflow:CI)
|
2016-12-29 13:35:36 +01:00
|
|
|
[![Total Downloads](https://poser.pugx.org/nelmio/api-doc-bundle/downloads)](https://packagist.org/packages/nelmio/api-doc-bundle)
|
|
|
|
[![Latest Stable
|
|
|
|
Version](https://poser.pugx.org/nelmio/api-doc-bundle/v/stable)](https://packagist.org/packages/nelmio/api-doc-bundle)
|
|
|
|
|
|
|
|
The **NelmioApiDocBundle** bundle allows you to generate a decent documentation
|
|
|
|
for your APIs.
|
2016-11-18 18:00:09 +01:00
|
|
|
|
2020-05-28 13:19:11 +02:00
|
|
|
## Migrate from 3.x to 4.0
|
|
|
|
|
|
|
|
[To migrate from 3.x to 4.0, follow our guide.](https://github.com/nelmio/NelmioApiDocBundle/blob/master/UPGRADE-4.0.md)
|
|
|
|
|
|
|
|
Version 4.0 brings OpenAPI 3.0 support. If you want to stick to Swagger 2.0, you should use the version 3 of this bundle.
|
|
|
|
|
2017-05-13 17:55:09 +02:00
|
|
|
## Migrate from 2.x to 3.0
|
|
|
|
|
2019-04-11 20:54:16 +02:00
|
|
|
[To migrate from 2.x to 3.0, follow our guide.](https://github.com/nelmio/NelmioApiDocBundle/blob/master/UPGRADE-3.0.md)
|
2017-05-13 17:55:09 +02:00
|
|
|
|
2016-11-18 18:00:09 +01:00
|
|
|
## Installation
|
|
|
|
|
2018-01-04 17:47:47 +01:00
|
|
|
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
|
2017-05-13 16:39:37 +02:00
|
|
|
|
2016-11-18 18:00:09 +01:00
|
|
|
```
|
2018-01-04 14:33:02 +01:00
|
|
|
composer require nelmio/api-doc-bundle
|
2016-11-18 18:00:09 +01:00
|
|
|
```
|
|
|
|
|
2018-01-04 14:33:02 +01:00
|
|
|
## Documentation
|
2016-11-18 18:00:09 +01:00
|
|
|
|
2018-01-04 14:33:02 +01:00
|
|
|
[Read the documentation on symfony.com](https://symfony.com/doc/current/bundles/NelmioApiDocBundle/index.html)
|
2016-12-29 13:35:36 +01:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
See
|
|
|
|
[CONTRIBUTING](https://github.com/nelmio/NelmioApiDocBundle/blob/master/CONTRIBUTING.md)
|
|
|
|
file.
|
|
|
|
|
|
|
|
## Running the Tests
|
|
|
|
|
|
|
|
Install the [Composer](http://getcomposer.org/) dependencies:
|
|
|
|
|
|
|
|
git clone https://github.com/nelmio/NelmioApiDocBundle.git
|
|
|
|
cd NelmioApiDocBundle
|
|
|
|
composer update
|
|
|
|
|
2017-05-13 16:39:37 +02:00
|
|
|
Then run the test suite:
|
2016-12-29 13:35:36 +01:00
|
|
|
|
2017-05-13 16:39:37 +02:00
|
|
|
./phpunit
|
2016-12-29 13:35:36 +01:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
This bundle is released under the MIT license.
|