...
With this design class diagram you can see the interactions happening between different classes of our program. The loginService makes sure it knows everything that has to do with logging in. The resource sends the requests to the controller service and recieves data back from the controllerservice.
The resource classes makes uses of the Response interface. This needs to happen, so that the user knows what went wrong.