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

Testing the endpoint – createUser

As we have finished out first API implementation, we can now test it by calling the following URI in the browser:

http://localhost:8081/user

As we can't use the POST method in a browser, we will test it in a REST API client, called Postman: 

After adding the new user, you can check the results by calling the getAllUsers URI (http://localhost:8081/user).

Postman is a REST client that can be used to build, test, and share REST API calls. Tools like these will be very helpful when we test our REST API without having to write code for testing.

SoapUI is another REST client and can be used as an alternative to Postman. 
主站蜘蛛池模板: 拉孜县| 香港 | 楚雄市| 阿克| 巫溪县| 蒙阴县| 青海省| 泰宁县| 丘北县| 依兰县| 昭通市| 四子王旗| 潮州市| 大新县| 阳信县| 马尔康县| 类乌齐县| 专栏| 乌鲁木齐县| 明溪县| 东乡县| 肇庆市| 柘城县| 清远市| 上思县| 德庆县| 泗阳县| 察雅县| 炉霍县| 华坪县| 巴林左旗| 红桥区| 南宁市| 嵊泗县| 千阳县| 嘉荫县| 衡水市| 云南省| 涟源市| 建昌县| 中江县|