Company: Citi
Difficulty: medium
Spring: Total Items Bought Endpoint Problem You are writing an endpoint that returns the total number of items bought in your online store by a given user. Orders in your system are stored in an external service called OrdersService . Your task is to: write an endpoint in the given UsersController class; write a method in the given UsersService class that counts the number of items bought by the given user; configure the UsersController and UsersService classes. Solving this task requires from you editing the following three files. Please make sure they are all present in your final solution. com.codility.app.AppConfiguration com.codility.app.UsersController com.codility.app.UsersService Interfaces The UsersService class declares: a field ordersService : private OrdersService ordersService a method getNumberOfItemsBought : public int getNumberOfItemsBought(String username) The UsersController class declares: a field usersService : private UsersService usersService a method totalItemsBo