定制 jaypanchal/apitester 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jaypanchal/apitester

最新稳定版本:v2.0.0

Composer 安装命令:

composer require jaypanchal/apitester

包简介

You can test APIs in your laravel app using this package.

README 文档

README

The name of this package it self describes the usage of the package. You can test APIs using this laravel package.

First, we will see the Installation part and after that, we will move on: "How to use" part.

Installation

  • run below command in your project root directory to install the package.
  composer require jaypanchal/apitester
  • After that, include below line into providers array of config/app.php file
Jaypanchal\Apitester\ApiTesterServiceProvider::class,
  • in your laravel app, you can use apitester using this code:
use Jaypanchal\Apitester\ApiTester; //include this line in top of your class file.

//add below code in any function of class.
$apitester = ApiTester::loadTester();
echo $apitester;

Output

  • in output, you will get this UI:

App Screenshot

Usage

  • You need to enter your api in Url field.
  • Select method of that api (GET, POST, DELETE, PUT, PATCH)
  • You can also pass Headers for that API in Headers Fields. Initially, there will be 2 fields: "Key" and "Value".
  • You can pass header key and header value in it.
  • Example: I want to pass Bearer Token for my API. So, I will Enter Key as: "Authorization", and value as: "Bearer [BEARER_TOKEN]".
  • You can also pass multiple headers using "Add new Header" button.
  • You can pass parameter for that API same way we are passing headers.
  • When you done with your headers and parameters, then you need to click "Call API" button to see your api output in "API Output" box.

Authors

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固