jinsoft/laravel-swagger

A great way to integrate Swagger into Laravel

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 178

Language:JavaScript

dev-master 2019-01-13 11:52 UTC

This package is auto-updated.

Last update: 2024-05-14 00:56:44 UTC


README

jlapp/swaggervel 基础上修改

修改

1.增加中文翻译

2.修改zircote/swagger-php 版本依赖为 ^2.0

使用方法,在任意一个controller里面添加以下内容(最好单独创建一个controller)

/**
 * @SWG\Swagger(
 *     schemes={"http","https"},
 *     basePath="/",
 *     @SWG\Info(
 *         version="1.0.0",
 *         title="API文档",
 *         description="",
 *         termsOfService=""
 *     )
 * )
 */