juststeveking/laravel-stoplight-elements
最新稳定版本:3.0.1
Composer 安装命令:
composer require juststeveking/laravel-stoplight-elements
包简介
A simple API documentation package for Laravel using OpenAPI and Stoplight Elements
README 文档
README
Easily publish your API documentation using your OpenAPI document in your Laravel Application.
Installation
You can install this package via composer:
composer require juststeveking/laravel-stoplight-elements
Configuration
You can publish the configuration file with:
php artisan vendor:publish --provider="JustSteveKing\Laravel\LaravelStoplight\StoplightServiceProvider" --tag="config"
This is the contents of the published config file:
return [ 'title' => 'API Documentation', 'path' => [ 'name' => env('STOPLIGHT_PATH_NAME', 'docs'), 'url' => env('STOPLIGHT_PATH_URL', 'api/docs'), ], 'openapi' => [ 'path' => env('STOPLIGHT_OPENAPI_PATH', 'https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.yaml') ], 'config' => [ 'router' => "hash", 'layout' => "sidebar", ] ];
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email juststevemcd@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 66.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 43
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-06