A simple api endpoint demo built under rails 4