2

Apipost is a collaborative tool that integrates API debugging, document generation, mocking, and testing. A single tool can meet the functions of interface testing, generating/sharing documents, mocking, process testing, etc., as well as the super practical function of real-time collaboration between multiple people and multiple roles. Connect the front-end, back-end, and testing roles in series to achieve seamless workflow and improve R&D efficiency!

Official link:

Apipost - based on collaboration, not limited to API documentation, debugging, Mock

image.png
(Apipost uses the entire workflow)

Let's take everyone to appreciate the charm of Apipost. Let's go ~

01

Interface debugging with Apipost

Interface debugging is one of the most used functions in the development phase, and ApiPost is used to perform conventional interface debugging functions.

First click New Interface, fill in the interface URL and parameters, save the successful response example, click Send, you can view the returned data, return Header, Cookie, status code, request duration and other data.
image.png

During project development, we can also mark the interface status to facilitate online viewing among project members, and team managers can also see the progress of the project at a glance.
image.png

02

Use Apipost to quickly generate interface documentation

After the test, when you want to quickly generate a document for the front-end to see, just click the share document to get the corresponding document link.
image.png

We only need to send the generated document link to the front-end partner. Of course, if the back-end partner needs to modify the interface data, the document shared with the front-end partner will also be updated in real time, which greatly saves front-end and back-end development and communication. time. It is the gospel of the former development partners~

It is worth mentioning that we also support sharing documents, sharing projects and custom sharing. You can choose according to your own needs. In addition, some partners have relatively high requirements on data confidentiality, and can ensure data security by setting the document viewing time limit and password.
image.png

03

Using Mock in Apipost

As we all know, when the back-end interface has not been developed, the interface cannot obtain data, so the front-end partners need to write the data generation rules of the API in advance through Mock, and the tool can dynamically generate the return data of the API. By accessing the Mock to obtain the data required by the page, the docking work can be easily completed.

First click on the Mock service, and then edit the Mock template to view the real-time generated Mock data.
image.png

Click the copy link above to hand over the mock request of this interface to the front-end partners, and then carry out various cooperative development.

At the same time, Apipost supports parameters to directly refer to mock.js variables, which basically meets the needs of most business scenarios.
image.png

04

Process testing with Apipost

A process test is a test against a collection of interfaces, selecting the corresponding environment, and running it together as a series of requests. Process testing is very useful when you want to automate API testing.

In Apipost, creating a process test requires the following steps:

Create a new interface and add an assertion to open the process test. Create a new process and add a test interface to the process to select the environment. Click Start Test to view the returned test interface. The process test interface is as follows:
image.png

View request parameters and response data by clicking View Request in the list.
image.png

At the same time, Apipost also provides many built-in functions. For example, we can easily decrypt a variable.
image.png

What the script can do

Test (assert) the correctness of the request feedback result (post script)
Dynamically modify interface request parameters, such as adding interface signature parameters (pre-script)
Pass data between interface requests (using script manipulation variables)
In the script, you can directly request an interface address for more functions of Apipost, and wait for your friends to find out. Alright, that's it for this issue.

Apipost official link:

Apipost - based on collaboration, not limited to API documentation, debugging, Mock

If you want to know more about product usage related functions, please visit "Visit Official Website"
image.png

Scan the code to join the official community


玩足球的煎饼
42 声望159 粉丝