Summary
In this chapter, we discussed what an API is and its different types. Then we moved on to REST API and dived deep by exploring different types of HTTP request methods involved in it. Then we discussed different types of authentication mechanisms, specifically basic authentication types and JSON web tokens. In basic authentication, we studied how it passes related information in the header of a request. Then we studied different components of JSON web token, such as header, payload, and signature.
We then moved on to the practical part and created a RESTful web service by ourselves. After testing its functionality over the web, we moved on to create its Java client to all the REST web services directly in our program, which went successfully.
Then we started discussing an in memory database called Redis. We saw what it is and why it is popular. We then moved on to its installation. We then set up Redis server and Redis client, which is also called Redis CLI. We then dived into exploring...