上QQ阅读APP看书,第一时间看更新
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.