Spring Restapi assesment