-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Apifox integration | ||
|
||
Version required: <Badge text="2024.1.4+" /> | ||
|
||
![apifoxIntegration](/img/2024.1.4/apifoxIntegration_en.png) | ||
|
||
## 1. API access token configuration | ||
|
||
![apifoxGenerateApikey](/img/features/apifoxGenerateApikey_en.png) | ||
|
||
Setting path: `Avatar -> Account Setting-> API Access Token`。 | ||
|
||
::: tip Expiration | ||
Note that after the validity period of the Api key, the plugin's Apifox synchronization function will no longer work, | ||
so it is recommended to check `no Expriation` when creating the Api Access token. | ||
::: | ||
|
||
## 2. Mapping project | ||
|
||
![apifoxConfigProject](/img/features/apifoxConfigProject_en.png) | ||
|
||
After we have correctly set the Api access token, we need to make a mapping association between the IDEA project | ||
and the Apifox project. Click to refresh the project. When the project is loaded, click on the team option and | ||
check the target project. | ||
|
||
## 3. Environment sync | ||
![apifoxSyncEnvironment](/img/features/apifoxSyncEnvironment_en.png) | ||
|
||
Environment sync function will synchronize all domain names, variables, and global parameters of the project to Apifox | ||
as service parameters, variables, and global parameters. It is recommended to execute this step before **API sync** | ||
|
||
|
||
## 4. API sync | ||
![apifoxSyncApi](/img/features/apifoxSyncApi_en.png) | ||
|
||
To synchronize the API, you need to save the API first. It can be triggered manually or automatically. | ||
For automatic triggering, you need to check the `Sync after save` option in the Apifox sync setting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Apifox 集成 | ||
|
||
版本要求: <Badge text="2024.1.4+" /> | ||
|
||
![apifoxIntegration](/img/2024.1.4/apifoxIntegration.png) | ||
|
||
## 1. 配置 API access token | ||
|
||
![apifoxGenerateApikey](/img/features/apifoxGenerateApikey.png) | ||
|
||
参考 Apifox 官方文档 [Apifox 开放 API](https://apifox.com/help/openapi), 获取 API access token 的功能路径:`头像-账号设置- API 访问令牌`。 | ||
|
||
::: tip 有效期 | ||
需要注意的是,过了 Api access token的有效期,插件关于 Apifox 同步的功能将全部失效,所以建议在创建 Api access token 的时候设置为`无限期` | ||
::: | ||
|
||
## 2. 映射项目 | ||
|
||
![apifoxConfigProject](/img/features/apifoxConfigProject.png) | ||
|
||
当我们正确设置好 Api access token 之后,需要对 IDEA 项目与 Apifox 的项目进行一个映射关联,点击刷新项目,当项目加载完毕以后,点开团队选项,勾选对应的项目即可。 | ||
|
||
|
||
## 3. 同步 Environment | ||
![apifoxSyncEnvironment](/img/features/apifoxSyncEnvironment.png) | ||
|
||
同步 Environment 会将项目的不同环境的域名、变量、全局参数全部同步至 Apifox,作为 Apifox 的服务参数、变量以及全局参数。这一步建议放在 API 同步之前**先执行** | ||
|
||
## 4. 同步 API | ||
![apifoxSyncApi](/img/features/apifoxSyncApi.png) | ||
|
||
同步 API 需要先将 API 进行保存,可以手动触发,也可以自动触发,自动触发需要在 Apifox 同步设置中勾选`保存 API 后同步 Apifox`选项。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Postman 同步 | ||
# Postman 集成 | ||
|
||
版本要求: <Badge text="2023.2.3" /> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters