Create a REST client component definition:
Create a REST client component script:
Now add the Javascript Model:
Add the REST client javascript:
Make that component available on some page, then add it:
If something fails to work at this point, you might be missing the JavaScript Models module ... install it by adding the following to your webapp pom:
If you still can't get it to work, simple download http://pvnp.us/REWE/javascript-model-samples.tgz, and unpackage it into your light-modules directory. Make sure you make the service available on your page template:
Try it out - add a rest component to your symlinky page:
Overview
Content Tools