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

Testing the endpoint – getAllUsers

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

You should get the following result:

[
{
userid: 100,
username: "David"
},
{
userid: 101,
username: "John"
},
{
userid: 102,
username: "Kevin"
}
]

You can also check the API in any REST client, like Postman/SoapUI or any other REST client.

主站蜘蛛池模板: 临湘市| 澎湖县| 南川市| 清新县| 抚松县| 克拉玛依市| 湛江市| 神农架林区| 昌图县| 清镇市| 读书| 盐亭县| 永泰县| 上林县| 大新县| 巢湖市| 佛冈县| 惠来县| 莆田市| 莱西市| 抚远县| 霍城县| 灵石县| 佛学| 平乡县| 彰化县| 屏东县| 昌宁县| 日照市| 宿迁市| 天镇县| 永平县| 自治县| 平果县| 栾川县| 博野县| 梓潼县| 林口县| 民丰县| 平顶山市| 宜良县|