Here is a tool for testing the interface that the backend is opening to the client.
Using HTTP or HTTPS
Use form or JSON format
The tool was previously a plugin for Google Chrome and later appeared on the client side of each platform. Very practical.
Named Postman.
Official website: Https://www.getpostman.com/apps
This side is mainly a sharing, but also to those who finish the interface does not complete their own tests, or only write service Layer unit test people warning.
Your error will affect the progress of the client programmer.
Needless to say, this is the main introduction of Windows in the context of a few simple use.
1, set the request mode post, etc.
2. Set the request content
Commonly used for Form-data form format, the form can be uploaded files. Here you can choose
Raw can transmit JSON or XML, etc.
Binary binary data
is the file
3. Send
Click Send directly, you can save it automatically after sending it.
Advantages:
The various request types are full, and the messages sent and the messages returned are clear.
JSON format is automatically formatted
can set session and cookies, etc.
You can set the protocol header
Have a history, this is very useful for testing, do not worry about the test after the completion of the changes, directly saved, the next time you click on the test again.
Other features are not described more. According to their own needs to use.
After testing with this software, if the problem again you first Test yourself, if there are no problems you can directly query the client to write wrong. Have the clout.
How to test the interface you open to the client app