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

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. 
主站蜘蛛池模板: 三原县| 连城县| 伊吾县| 阜平县| 禹州市| 绥中县| 星子县| 横峰县| 长岭县| 龙陵县| 巴青县| 广德县| 盐城市| 彰化县| 崇明县| 常熟市| 平塘县| 界首市| 聂荣县| 丰原市| 探索| 满城县| 弥勒县| 汪清县| 旺苍县| 金坛市| 思茅市| 东兴市| 华坪县| 江陵县| 南靖县| 介休市| 余姚市| 依兰县| 绥化市| 东港市| 宁陕县| 内乡县| 名山县| 长泰县| 房山区|