Rewritten sample app as API with example from: http://ecomapi.herokuapp.com/