Created the spring controller used for REST web services