In this article, the main postman is the JSON structure of the operation instructions this article takes order shipment as an example, according to the interface document to design the user under the Single interface field there are two ways to pass the field JSON data: The interface field rules:
- The interface is the POST request mode, the input JSON data structure is entered directly in the body of the postman in the Form-data
2, in the body, raw in the input JSON data structure, but this method I did not call success (may be our structure definition and write a little difference, follow-up asked to develop, pending research)
- First, in headers, set Content-type to Applicationon/json,
- Then in the body, select Raw, write the JSON data structure,
- In JSON, multiple data structures are written and nested
3, we can use JSON to translate the JSON data we wrote is correct, the link address is: http://json.cn/
There are pictures to see, just write the JSON statement is no problem, but the data after the request is not correct, this first set aside this problem, follow-up study, Welcome to solve!
The postman parameter is a JSON data structure