kbrabrand/zf2-swagger-ui 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kbrabrand/zf2-swagger-ui

Composer 安装命令:

composer require kbrabrand/zf2-swagger-ui

包简介

Swagger UI module for ZF2

README 文档

README

ZF2 module wrapping the default Swagger UI interface in a ZF2 module.

##Installation The recommended way of installing Swagger UI for ZF2 is by using composer. Add "kbrabrand/zf2-swagger-ui" : "dev-master" to the require part of your composer.json file and do a composer update in order to download the dependency and generate autoloads.

Then add the module to the modules array in your application.config.php by adding "SwaggerUI".

And lastly you will need to make the asset folder publicly accessible. This can be done in several ways, but for simplicty you could add a symlink like this;

cd [ZF-app-root]/public && ln -s ../vendor/kbrabrand/zf2-swagger-ui/public swagger-ui

##Configuration There is one configurable option for the module. If you want Swagger UI to look for Swagger JSON somewhere other than /api/docs under the root of your ZF2 app, you can copy the swagger-ui.global.php.dist to your config/autoloads folder and set the docs-endpoint option to wherever you like.

##Usage After adding the module to your application config you can access Swagger UI by going to /api/swagger.

License

Swagger UI templates, images and JS files

Copyright 2011-2013 Wordnik, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###Everything else Copyright (c) Kristoffer Brabrand kristoffer@brabrand.no

Licensed under the MIT License

统计信息

  • 总下载量: 35.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 5
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固