IDEA is the most commonly used development tool. Many programmers want to make it a one-stop development platform, so they install various plug-ins. Recently I found an IDEA plugin RestfulFastRequest
, the details are really good, it is not an exaggeration to say that it is the IDEA version of Postman, I recommend it to everyone!
SpringBoot actual e-commerce project mall (50k+star) address: https://github.com/macrozheng/mall
Introduction to RestfulFastRequest
RestfulFastRequest
Known as the IDEA version of Postman. It is a powerful Restful API toolkit plugin that can quickly generate interface debugging use cases based on existing methods. It has a beautiful interface to complete requests, check server responses, store your API requests and export API requests, this plugin can help you debug your API faster and more efficiently within IDEA!
The following is a rendering of using RestfulFastRequest
debug the mall project API interface, it is very convenient to use!
Install
First let's install RestfulFastRequest
plugin.
- We can open IDEA's plug-in market and search for it
RestfulFastRequest
, it looks like a paid plug-in, and if you look closely at the description of the plug-in, you can find that it has a free version. It seems that the author is quite conscientious!
- Click
免费版
connect to download the plugin installation package directly, download address: https://github.com/dromara/fast-request/issues/61
- After the download is complete, simply choose to install the plugin from the local disk.
use
Next, let's use the RestfulFastRequest
plugin to see if it works as well as Postman!
Create project and environment
- Click the
FastRequest
button on the right side of IDEA to open the plug-in panel. For the first use, you need to configure the project name and environment name first;
- Click
管理配置
button to configure, configure the project name, and the environment name, here are the access addresses of the two environmentsdev
andprod
;
- After selecting the project name and environment, you can start debugging the API interface.
Debug API interface
- Click the
小火箭
button on the left side of the interface to directly generate the information required to call the interface, and after modifying the parameters, it can be called directly;
- Click
小飞机
button to send the request, and you can receive the formatted JSON data.
Quickly add Header
- Friends who have studied my mall project should know that many interfaces in the project can only be accessed after successful login, such as this interface for obtaining the user list;
- I can quickly add authentication headers by selecting return info;
- Modify the Header name to
Authorization
and add theBearer
prefix to the token;
- Next, you can access the interface that requires login authentication and access it normally.
JSON syntax check
- It is worth mentioning that the plugin supports JSON very well, not only supports highlighting, but also supports folding;
- It can also prompt when the incoming JSON parameter format is incorrect.
CURL copy
You can also copy commands via the CURL button if you want to use the CURL tool.
API list
When we debug the interface, we can save the interface and debugging information to the API list by pressing the save button.
API Navigation
All interfaces can be viewed in the API navigation, and the first time you need to click the refresh button to load.
Reverse targeting API code
Double-clicking the interface information can directly locate the code in reverse direction, and it is convenient to find the code through the interface!
API search
The 搜索
button enables easy API search.
Export to Postman
- If you still want to use Postman, you can directly export the interface information through the
导出到Postman
function;
- After the export is successful, import the JSON configuration file in Postman to use it;
- After the import is successful, the display effect is as follows, but only the saved API can be exported, and all APIs cannot be directly exported.
Summarize
I experienced a RestfulFastRequest
this plug-in today, the experience is really good, the debugging interface is basically enough for developers! In particular, it can directly generate debugging information according to the interface code, and can directly locate the code according to the interface, which really improves the efficiency of developers!
References
Official documentation: https://dromara.org/fast-request/
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。