Package Data | |
---|---|
Maintainer Username: | putianxin |
Maintainer Contact: | putianxin@vip.qq.com (ptx) |
Package Create Date: | 2018-08-21 |
Package Last Update: | 2020-10-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-23 03:13:16 |
Package Statistics | |
---|---|
Total Downloads: | 7 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Swagger 2.0 for Lumen 5
对 SwaggerLume 进行封装。 使其支持YAML文档。
composer require --dev ptx/lumenyaml-swagger
bootstrap/app.php
$app->withFacades();
$app->configure('swagger-lume');
$app->register(\PtxDev\Swagger\SwaggerLumenServiceProvider::class);
app/Providers/AppServiceProviders.php
/**
* @SWG\Swagger(
* @SWG\Info(
* title="My first swagger documented API",
* version="1.0.0"
* )
* )
*/