Refactored REST methods, now returns a list oj JSON objects to be used
by the app