官术网_书友最值得收藏!

Sending the first request using Postman

Let's send our first request for an API using Postman. For this test, we will be using the  postman-echo.com site, which Postman hosts to test the APIs, as mentioned in the preceding section. Instead of using postman-echo.com, you can use other sites that you are familiar with, that will respond to HTTP GET/PUT/POST requests:

  • Open Postman on your operating system
  • In the URL field, enter postman-echo.com/get
  • Make sure to have GET selected in the HTTP request type field
  • Hit the Send button to send your API request, and at the bottom you will see the response from the API with JSON data. As we have tested the request/response for postman-echo.com, the request that we made is added to the history, as you can see in the following screenshot. You can see postman-echo.com/get under the History tab of the sidebar:
主站蜘蛛池模板: 始兴县| 庆元县| 邓州市| 富锦市| 昭觉县| 岚皋县| 五寨县| 泰宁县| 德保县| 宽城| 孟村| 广安市| 皮山县| 泽库县| 囊谦县| 金塔县| 墨竹工卡县| 兰溪市| 遂昌县| 芜湖县| 宁夏| 正安县| 和田市| 罗山县| 绥化市| 成都市| 泸溪县| 襄樊市| 建平县| 察隅县| 烟台市| 河北省| 南宁市| 连城县| 勐海县| 镶黄旗| 赫章县| 木里| 梅州市| 应用必备| 宾川县|