IntelliJ IDEA plug-in HTTP Client

 

In order from the top tool bar Tools -> HTTP Client -> after Test RESTFUL Web Service opens, IDEA REST Client Console

 

: In the project directory under construction .http (or .rest file), such as sandbox.http

Edit request in the file, post or get and other

 

Click on the left button to perform the execution

Example: 

###
POST http://localhost:8080/xxxx
Content-Type: application/json
Cache-Control: no-cache

{"a":1, "b":2}

###
GET http://localhost:8080/xxx?pageNo=2&pageSize=1
Accept: */*
Cache-Control: no-cache

 

reference:

https://www.jianshu.com/p/0be2fccc99e4

https://mp.weixin.qq.com/s/ZUd5KUw12vdLusEGmGAFhQ

 

Guess you like

Origin www.cnblogs.com/wangsong412/p/11973274.html