August 2018
Intermediate to advanced
372 pages
9h 29m
English
As mentioned previously, there are also thin clients, which don't include a lot of code to interact with the server; one good example of a thin RESTful web service client is curl.
In order to interact with the endpoints provided by the server example, we can use two curl commands, as follows:
$ curl -H "Content-Type: application/json" \-X POST -d '{"username":"rene","password":"rene"}' \http://localhost:8080/api/public/auth
$ curl -H "x-auth-token: JWT_TOKEN" \-X GET http://localhost:8080/api/secure/balance
For these kinds of clients, we don't have to write our own ...
Read now
Unlock full access