Download the PHP package elenyum/open-api without Composer
On this page you can find all versions of the php package elenyum/open-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elenyum/open-api
More information about elenyum/open-api
Files in elenyum/open-api
Package open-api
Short Description This bundle generates documentation and returns JSON formatted according to the OpenAPI specification.
License MIT
Informations about the package open-api
Elenyum Open API
This bundle generates documentation and returns JSON formatted according to the OpenAPI specification.
Install
Configuration
For adding configuration, create a config file in the project root directory, /config/packages/elenyum_open_api.yaml. In the config file add:
To add a route to get the json specification add to project root file /config/routes/elenyum_open_api.yaml
width config example:
Cache Configuration
-
cache.enable:
Indicates whether caching is activated. Default:false
. - cache.item_id:
Sets the cache item identifier. Default:elenyum_open_api
.
Example:
yaml
Documentation Configuration
Serves as a foundation for creating API documentation using attributes as keys.
-
documentation.info.title:
The title of the application in the documentation:My App
. -
documentation.info.description:
The description of the application in the documentation:Description service
. - documentation.info.version:
The version of the application in the documentation:1.0.0
.
Example:
yaml
Other Configuration
Filters the routes that will be documented and manages their visibility in the generated documentation.
-
path_patterns:
An array of regex patterns to match against the path for including routes. -
host_patterns:
An array of regex patterns to match against the host for including routes. -
name_patterns:
An array of regex patterns to match against the route name for including routes. -
with_tag:
A boolean indicating if routes should be filtered by tag (annotations). - disable_default_routes:
A boolean indicating if default routes without explicit OpenAPI annotations should be excluded.
Example
yaml
All versions of open-api with dependencies
ext-json Version *
symfony/console Version ^5.4|^6.0|^7.0
symfony/framework-bundle Version ^5.4.24|^6.0|^7.0
symfony/options-resolver Version ^7.0
symfony/property-info Version ^7.0
symfony/validator Version ^7.0
zircote/swagger-php Version ^4.2.15