Apipost is a tool that takes into account API interface debugging (postman’s main function) and interface document generation (Taobao RAP’s main function), and on the basis of the two, adds a lot of more human operations, do not know, a use can not be thrown off.

Tip 1: Quickly import parameters

Apipost supports importing parameters in a variety of formats, as shown below. You no longer need to write parameters one by one:

The import format can be key-value or JSON:

1-1: key-value example:

Key-value format is a common data format for the browser (F12) console, as shown below:

Let’s copy the above request header parameters, paste them into the APIPost, and click Import

Parameters are instantly imported into the request parameters, as shown below:

The above example only shows how to quickly import the header argument. Other arguments, such as query and body, operate the same way.

1-2: Import in JSON format:

Apipost also supports importing parameters in JSON format, which can be as follows:

{
	"id": 123,
	"title": "I am the title."
}Copy the code

As shown in the picture, click Import and the parameters are quickly imported into the request parameters.

Tip 2: parameter annotation automatic recognition

Above we wrote how to import parameters quickly, in fact, for the generation of interface documentation, parameter description (comment) is the most deadly, for us always busy programmers, spend a lot of time in writing documentation is too tired!

Fortunately, apiPost saves us a lot of time by simply commenting a parameter once and selecting it the next time it encounters the same parameter. For example:

In the figure above, we write corresponding comments for id and title:

Id: “I am the article ID”

Title: “I am the title of the article”

When we create a new interface, suppose this interface is also usedidortitleAnd other parameters, click parameter description will show the parameter description just entered, directly selected, no more trouble typing input.

Does this little feature save developers a lot of time?

Tip 3: Quickly locate the current interface directory

The directories on the left are closed by default, and sometimes we don’t know which directory the interface we are currently editing belongs to, which can be quite a headache to find. Apipost provides the “locate to current interface directory” function (see figure below), which can quickly open the directory where the interface and document are currently being edited.

Apipost also has many small functions that are more in line with Chinese people’s operation habits, waiting for you to discover.

You are strongly advised to install and use the official website: www.apipost.cn/