Skip to content

Instantly share code, notes, and snippets.

@thewarpaint
Created May 29, 2013 17:14
Show Gist options
  • Save thewarpaint/5672007 to your computer and use it in GitHub Desktop.
Save thewarpaint/5672007 to your computer and use it in GitHub Desktop.
Prueba de API
// Este código:
var cur = new Currency({ 'code': 'XXX', 'name': 'XXX Currency', 'exchangeRate': 12.3456 });
cur.$save();
// Devuelve:
// 200 OK
{"id":33,"name":"XXX Currency","code":"XXX","isBase":false,"prefix":null,"suffix":null,"exchangeRate":"12.3456"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment