Implementing functionalities using RestApi and scala-springboot