Article Directory
1. Download the JSON interface protocol
- Download the JSON interface protocol that the intelligent transportation system opens to the App_中慧V2.2.pdf
- Link: https://pan.baidu.com/s/1SV4cQN-7u4DvNCWmF3Yl3g Extraction code: 0x16
2. Download Postman
3. Log in with VPN account
4. Start Postman
- Postman main window
5. Test the action interface of the car
- View the documentation for setting the action interface of the trolley
- Description: Replace localhost with
192.168.176.15
- Choose POST request method
Enter request URL
Type in the text boxhttp://192.168.176.15:8080/api/v2/set_car_move
- Switch to the
Body
tab and selectraw
- Enter JSON data in the text box:
{"CarId":1, "CarAction":"Stop", "UserName":"user1"}
- Choose sending format:
JSON(application/json)
- Click the [Send] button to view the results returned by the server
- If the returned JSON is as follows, it means that the access is successful
- Modify the trolley number data, send it again, and check the result