Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 89
JavaScript with JQuery client
Fanie Reynders edited this page Jan 18, 2016
·
1 revision
Simply reference the proxy endpoint provided inside your HTML and you're good to go:
<scriptsrc="/api/proxies" type="text/javascript"></script>It allows you to use it in JavaScript like this:
$.proxies.person.get().done(function(people){//do something with people});$.proxies.person.get(2)//get person with id = 2.done(function(person){//do something with person});This functionality was adopted from ProxyApi - kudos to Stephen Greatrex :)
Getting started
General