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

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:
主站蜘蛛池模板: 随州市| 景德镇市| 宝鸡市| 陵水| 双江| 楚雄市| 夹江县| 鹰潭市| 深泽县| 会东县| 盘锦市| 禄劝| 广州市| 泊头市| 德阳市| 托克托县| 新绛县| 明水县| 镇坪县| 新沂市| 若尔盖县| 司法| 陵川县| 修武县| 万源市| 伊宁县| 朝阳市| 文登市| 佛山市| 扶风县| 深水埗区| 德江县| 嘉祥县| 上林县| 黑水县| 汉川市| 沭阳县| 沧州市| 维西| 甘肃省| 洛扎县|