Download the PHP package 3sidedcube/laravel-redoc without Composer
On this page you can find all versions of the php package 3sidedcube/laravel-redoc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 3sidedcube/laravel-redoc
More information about 3sidedcube/laravel-redoc
Files in 3sidedcube/laravel-redoc
Package laravel-redoc
Short Description A lightweight package for rendering API documentation using OpenAPI and Redoc.
License MIT
Homepage https://github.com/3sidedcube/laravel-redoc
Informations about the package laravel-redoc
Laravel Redoc
This package provides an easy way for rendering API documentation using OpenAPI and Redoc.
Installation
You can install the package via composer:
Usage
Viewing the documentation
By default, the documentation is served at /docs/api
and will load the openapi.json
file from the openapi
folder
at the root of the project.
You can change the path used to serve the documentation by setting the redoc.path
config option.
If you would like to change the directory where your openapi.json
file is located, you can update redoc.directory
config option.
Documentation versions
Laravel Redoc supports rendering multiple versions of documentation. If you would like to serve a different version of
the documentation, you can include {version}
in the redoc.path
config option e.g. docs/{version}/api
. This will
then load the {version}.json
file from the configured directory.
Variables
If you would like to replace a "variable" in the documentation, you can use the redoc.variables
config option.
For example, if you would like to dynamically set the server url to the given environment, you could configure the following variable:
Now, when you use :server_url
in the OpenAPI definition, it will be replaced with the value of the APP_URL
.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Ben Sherred
- All Contributors
License
Laravel Redoc is open-sourced software licensed under the MIT license.
All versions of laravel-redoc with dependencies
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0