Two exmaples of using our REST API

One example with jquery and one with traditional Ajax. Both get a the
right response.