API Developer Benefits API online management, mock request test, document generation tool--apizza

Source: Internet
Author: User

Apizza (Http://apizza.cc?f=51cto) platform is divided into development mode and browse template, development mode only the user can open, browse mode is for other people to view, test use. 650) this.width=650; "src=" Http://ocrlqrwod.bkt.clouddn.com/195239_mw7H_2405364.png "style=" width:800px;height : 400px; "alt=" 195239_mw7h_2405364.png "/>

The Platform supports standard HTTP protocol requests, supports adding headers, supports standard Json,xml,html,text four return formats, and automatically formats the display. The platform has made many experience optimizations, such as parameter lists and URL auto-conversions, requesting document field one-click Generation. The fields of the response document can be automatically generated from the API return. Requests are automatically saved as history, supporting defined environment variables, easy to switch offline, lower environment, document export and so on.


The following is a brief introduction to how to use Apizza for interface testing.


First step: Prepare the interface

<?php   namespace Home\Controller;   use Think\Controller;    class apicontroller extends controller {     public  function index () {        $result  = array (               ' status ' =>1,               ' data ' =>array (                 ' name ' = ' My name ',                 ' tel ' = ' 12345678 ',              )          ) ;        header ("Content-type: application/json");       echo json_Encode ($result);    }} 

The second step: Test interface Login Apizza, create a new project, enter the console, fill in the interface address, and click Send, Effect 650) this.width=650; "Src=" http://ocrlqrwod.bkt.clouddn.com/203152 _qspl_2405364.png "style=" width:800px;height:400px; "alt=" 203152_qspl_2405364.png "/>650" this.width=650; "src=" Http://ocrlqrwod.bkt.clouddn.com/203257_CuiR_2405364.jpg "style=" width:800px;height:400px; "alt=" 203257_cuir_ 2405364.jpg "/>


Can see, the effect is good! Next, test the delivery parameters.

<?phpnamespace home\controller;use Think\controller;class Apicontroller extends Controller {public Function index ()    {$requests = I ();    $result = Array (' status ' =>1, ' data ' = $requests);    Header ("Content-type:application/json");    echo Json_encode ($result); }}



Test the following 650) this.width=650; "style=" width:800px;height:300px; "src=" http://ocrlqrwod.bkt.clouddn.com/203849_gyNI_ 2405364.png "alt=" 203849_gyni_2405364.png "/>


The test effect and the display effect are also good, and intuitive, concise.


The third step: Write document Apizza can easily write documents, as long as a button can be simulated fields automatically generated document fields. This function is still very convenient.

650) this.width=650; "style=" width:800px;height:300px; "src=" http://ocrlqrwod.bkt.clouddn.com/204035_uZb1_ 2405364.png "alt=" 204035_uzb1_2405364.png "/>


Click the U button, you can automatically generate the red box inside the field, you just add the instructions on the line. Finally click Save.


Fourth step: Export the document This function is good, the exported document format is also very beautiful. Such as

650) this.width=650; "style=" width:800px;height:300px; "src=" http://ocrlqrwod.bkt.clouddn.com/204151_heNS_ 2405364.png "alt=" 204151_hens_2405364.png "/>


650) this.width=650; "style=" width:800px;height:300px; "src=" http://ocrlqrwod.bkt.clouddn.com/204219_0m1Z_ 2405364.png "alt=" 204219_0m1z_2405364.png "/> Good, the basic introduction of the Apizza of the use of the process, he also has many other functions, there is no introduction, you can go to experience, and finally add, To use Apizza, you need to follow his chrome plugin, which is mostly cross-domain, otherwise you can't use Oh ^_^

This article is from the "12200269" blog, please be sure to keep this source http://12210269.blog.51cto.com/12200269/1865002

API Developer Benefits API online management, mock request test, document generation tool--apizza

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.