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

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. 
主站蜘蛛池模板: 贡山| 石泉县| 时尚| 江川县| 伊吾县| 香格里拉县| 福建省| 岑溪市| 红原县| 江北区| 会泽县| 夹江县| 德阳市| 阳东县| 三台县| 公安县| 吉安市| 昌江| 壤塘县| 石台县| 临武县| 定远县| 沙雅县| 汝城县| 容城县| 日照市| 花莲市| 新巴尔虎左旗| 如东县| 城固县| 黄梅县| 贵南县| 昌乐县| 名山县| 社会| 城市| 儋州市| 洪泽县| 临澧县| 平阳县| 赤水市|