How to use apipost API test tutorial

Time:2021-6-6

Apipost test tool can help users debug interfaces on software. You can choose post, get, put, patch, delete, copy, head, options, link, unlink, pulse, lock, unlock, propfeed, view and other interfaces for debugging. Don’t miss them if you are interested.

Software name:
Apipost v5.0.3 free installation 32-bit
Software size:
55.4MB
Update time:
2021-02-24Download now
Software name:
Apipost v5.0.3 free installation 64 bit
Software size:
58.2MB
Update time:
2021-02-24Download now

usage method

1. Download

Apipost officially provides chrome plug-in, window client and MAC client for download, preferably on the official website of apipost. However, I personally recommend installing the client. More flexible to use. I tried in person, and the test response data returned by the online version is slightly different from that of the client.

2. Installation

Client fool installation, nothing to say.

If you insist on installing chrome plug-ins and don’t want to fanq for indescribable reasons, you can refer to the chrome local installation tutorial on the official website.

3. Simulate send request (support file upload)

Let’s first write a simple back-end interface to accept all kinds of data

ApiPost(接口调试与文档生成工具)

The next step is to test apipost.

Go to apipost first. You need to register an account for the first time. After logging in, a pop-up window [create project] will pop up to fill in the name of your project (user-defined, preferably meaningful, such as the Spring Festival five blessings project). Here we input [test items] (professional programmers like to “test XX” all the time…)

After creating the project, you can test the interface.

The writing style is not good. No, I understand all the pictures below.

ApiPost(接口调试与文档生成工具)

Click send to see the response data.

4. Save, generate document

Finally, don’t forget to save. After saving, you can view your document.

ApiPost(接口调试与文档生成工具)

5. Teamwork

Of course, what’s more powerful about apipost is its teamwork capabilities. The boss doesn’t have to worry about the inefficiency of technical students any more.

I won’t go into details. After all, this is too easy to understand, there is nothing to say.

How to clone (copy) a project in apipost V3

How does apipost V3 clone (copy) a project?

It’s simple:

ApiPost(接口调试与文档生成工具)

Exporting interface API data from postman to Chinese interface testing tool apipost

Apipost is more suitable for domestic developers, and it also supports importing interface data of postman.

1. Export postman data

Open postman, right-click the top directory, select export, and save the exported JSON file

ApiPost(接口调试与文档生成工具)

2. Import to apipost

Open apipost, enter project, select import project, and select the JSON file just exported to import.

ApiPost(接口调试与文档生成工具)

How does apipost change the request parameter type?

Apipost supports multiple request parameter types. For example:

form-data

x-www-form-urlencoded

raw — JSON (application/json)

raw — XML (text/xml)

raw — Javascript (application/javascript)

raw — TEXT (text/plain)

raw — HTML (text/html)

Where to switch? Many students can’t find it, as shown in the figure below:

ApiPost(接口调试与文档生成工具)

The difference between form data, x-www-form-urlencoded and raw

1、form-data:

Can transfer data stream (upload) key value pair.

It is multipart / form data in HTTP request, which can not only upload binary data such as files, but also upload form key value pairs.

2、x-www-form-urlencoded:

Key value pairs that can transmit text (cannot transmit data stream, cannot upload).

Application / x-www-from-urlencoded can’t be used to upload binary data stream, such as image upload.

3、raw:

Non key value pair data.

You can upload text in any format, such as text, JSON, XML, HTML, etc.

The above is how to use apipost API test tutorial details, more information about the use of apipost tutorial please pay attention todeveloppaerOther related articles!