承接 aymard-pro/cake-swagger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

aymard-pro/cake-swagger

Composer 安装命令:

composer require aymard-pro/cake-swagger

包简介

Swagger plugin for CakePHP v3

README 文档

README

License

CakePHP 3.x plugin that dinamically adds auto-generated Swagger documentation to your projects using swagger-php and swagger-ui 3.x

Requirements

Installation

  1. Install the plugin using composer:

    composer require aymard-pro/cake-swagger:dev-master
  2. To enable the plugin either run the following command:

    bin/cake plugin load CakeSwagger --routes --bootstrap

    or manually add the following line to your config/bootstrap.php file:

    Plugin::load('CakeSwagger', ['routes' => true, 'bootstrap' => true]);
  3. Create the configuration file /config/cake-swagger.php if not exists. See #Configuration section

  4. Browsing to http://your_app_uri/api/ui should now produce the Swagger-UI interface:

    Default UI index

Configuration

All configuration for this plugin is done through the /config/cake-swagger.php configuration file. Full example below.

<?php

return [
	'CakeSwagger' => [
		'ui' => [
			'title' => 'CakePHP Swagger plugin'
		],
		'route' => [
			'path' => '/api'
		],
		'directory' => [],
		'exclude' => []
	]
];

Additional Reading

Contribute

I'm trying to make this plugin very testable for the community. Your ideas and suggestions are welcome. Create an issue here.

NB

This plugin was originally forked from alt3/cakephp-swagger based on the Swagger-UI 2.2.3

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固