mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
Generates documentation for your REST API from annotations
* [JMSModelDescriber] Allow to use free form objects from JMS serialization * Remove unused variable * Refactor `describeItem()` * Add more tests * early detect of free form objects * Add test for array property without type * Merge `findPropertyType()` and `registerPropertyType()` methods * Update `registerPropertyType()` in order to set "object" as type for arrays with undefined item types * Set "additionalProperties" definition for arrays without defined items * Simplified `registerPropertyType()` * Merged `registerPropertyType()` into `describeItem()` * Fix comment * Fix comment |
||
---|---|---|
Annotation | ||
Controller | ||
DependencyInjection | ||
Describer | ||
Form/Extension | ||
Model | ||
ModelDescriber | ||
Resources | ||
RouteDescriber | ||
Routing | ||
SwaggerPhp | ||
Tests | ||
Util | ||
.gitignore | ||
.php_cs.dist | ||
.styleci.yml | ||
.travis.yml | ||
ApiDocGenerator.php | ||
CHANGELOG.md | ||
composer.json | ||
CONTRIBUTING.md | ||
LICENSE | ||
NelmioApiDocBundle.php | ||
phpunit | ||
phpunit.xml.dist | ||
README.md | ||
update-js.sh | ||
UPGRADE-3.0.md |
NelmioApiDocBundle
The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs.
Migrate from 2.x to 3.0
To migrate from 2.x to 3.0, just follow our guide.
Installation
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
composer require nelmio/api-doc-bundle
Documentation
Read the documentation on symfony.com
Contributing
See CONTRIBUTING file.
Running the Tests
Install the Composer dependencies:
git clone https://github.com/nelmio/NelmioApiDocBundle.git
cd NelmioApiDocBundle
composer update
Then run the test suite:
./phpunit
License
This bundle is released under the MIT license.