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

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:
主站蜘蛛池模板: 囊谦县| 宁安市| 嫩江县| 栖霞市| 双流县| 从化市| 洞口县| 莫力| 平顺县| 响水县| 视频| 江西省| 汨罗市| 双城市| 加查县| 鄱阳县| 衡东县| 凯里市| 乌兰县| 安庆市| 鸡泽县| 巴彦淖尔市| 钦州市| 子长县| 惠东县| 廉江市| 南丹县| 西吉县| 广东省| 同德县| 宜川县| 安宁市| 临武县| 宾川县| 建阳市| 曲靖市| 米泉市| 启东市| 沈丘县| 康乐县| 徐州市|