We will now start implementing our first service, User Service. In the beginning, we will only implement a method that returns a User object for a given token string. If a user can't be found in the repository, the method will return UserNotFoundException, which should be caught by the AWS Lambda function and translated into the decline policy.
We can start implementing our User Service in the way we already know. Let's add our new module's name to the settings.gradle file using a simple echo command:
$ echo "include 'services-user'" >> settings.gradle
Create the required folder using the following command:
$ mkdir -p services-user/src/main/java/com/serverlessbook/services/user
It is a good time to create a User object for our project now. The User class will have the ID, email, and username properties,...