Original URL: apifox--use/tutorial/example_IT's blog - CSDN blog
Introduction
This article introduces the usage of apifox with examples.
install apifox
1. Download
Website: https://www.apifox.cn/
Here I download "Download Windows Desktop (64-bit)"
2. Installation
The installation is very simple and is omitted here.
3. Register an account
For the first use, you can select "Register an account". You can log in directly if you are already registered. Result after login:
4. Create a team
I create the "Knife Team"
result
5. Create a project
result
Click on "Knife Sample Project"
Create a SpringBoot project
The demo of the previous Knife4j (an upgraded version of swagger) is used directly here. See: Knife4j--use/tutorial/example/configuration
Export interface information to apifox
1. Start the SpringBoot project
2. Visit the Knife4j page
Visit: http://localhost:8080/doc.html
result:
3. Find the interface documentation link
The interface documentation link is: http://localhost:8080/v3/api-docs?group=all
This link is also directly accessible:
4. Export interface information to apifox through url
Project Settings => Import Data (Auto Import) => Turn "Auto Import" on
After opening:
enter url and import
result
test mock
Enter the "Run" interface
Select "Mock Service"
result
Test Mock
Test the local interface
1. Create a new "local service"
My setup:
2. Select "local service" and test the interface
automated test
To be added