binarytorch/larecipe-swagger 问题修复 & 功能扩展

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

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

binarytorch/larecipe-swagger

最新稳定版本:v0.2

Composer 安装命令:

composer require binarytorch/larecipe-swagger

包简介

Live API Testing Inside Your Documentation

README 文档

README

LaRecipe Swagger

Let your users tests your APIs directly from the documentation!

LaRecipe 🍪

LaRecipe is simply a code-driven package provides an easy way to create beautiful documentation for your product or application inside your Laravel app.

LaRecipe Screenshot

Getting Started

  1. Install the package via composer.
composer require binarytorch/larecipe-swagger
  1. Use the provided VueJs component:
<larecipe-swagger endpoint="/api/v1/users"></larecipe-swagger>
  1. Test your API:

LaRecipe Screenshot

  1. Customize your component via props:
Prop Type Default Example
base-url String The current location origin https://example.com
endpoint String - /api/v1/users
default-headers Object - { 'Content-Type': 'application/json' }
default-params Object - { 'name': 'saleem' }
default-method String get get,post,put,patch,update,delete
has-common-headers Boolean false { 'Content-Type': 'application/json', 'Accept': 'application/json' }
has-auth-header Boolean false { 'Authorization': 'Bearer token_here' }

See full larecipe documentation

License

This library is licensed under the MIT License - see the LICENSE.md file for details.

统计信息

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

GitHub 信息

  • Stars: 35
  • Watchers: 4
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-23