Use Postman to test the smart transportation system interface

1. Download the JSON interface protocol

2. Download Postman

Insert picture description here

3. Log in with VPN account

Insert picture description here
Insert picture description here

4. Start Postman

  • Postman main window
    Insert picture description here

5. Test the action interface of the car

  • View the documentation for setting the action interface of the trolley
    Insert picture description here
  • Description: Replace localhost with192.168.176.15
  • Choose POST request method
  • Enter request URLType in the text boxhttp://192.168.176.15:8080/api/v2/set_car_move
  • Switch to the Bodytab 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
    Insert picture description here
  • If the returned JSON is as follows, it means that the access is successful
    Insert picture description here
  • Modify the trolley number data, send it again, and check the result
    Insert picture description here

Guess you like

Origin blog.csdn.net/howard2005/article/details/113726766