Edited api to return values.
Fixed api, make angular write proper data from $http call