1. The development of the RESTful interface with a tool used to test gadgets, non-browser plug-ins, click on the jar can be directly run
2. The interface after running the jar package is as follows:
3:http Request Section
1.Method to select the request mode
2.Header is used to set request header parameters, which I tested for carrying token
3.Cookie used to set the portable cookie, similar to header
4.Body is used to set the parameters that carry the post and so on, and when method chooses post, the body has the following choices:
When you need to pass JSON data, you can select String Body
And then edit the properties of Content-type, I chose the background is Application/json, here and backstage to maintain consistent
Then you can enter the JSON data below, fill in the parameter click the arrow behind the URL to request the interface
4.HTTP Response part
This section shows the request results
The Returned parameter
Download address of the tool: Https://github.com/wiztools/rest-client/releases
Reference: http://blog.csdn.net/loongshawn/article/details/69267494