SHARE
TWEET

Untitled

a guest Mar 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <details>
  2. <summary>show</summary>
  3. More Info
  4. </details>
  5.  
  6.  
  7.  
  8. <table>
  9. <tr>
  10. <td>
  11.  
  12. Retrieve an `Todo.List` from the server.
  13.  
  14. </td>
  15. <td>
  16.  
  17. ```js
  18. Todo.getList({filter: {complete: true}})
  19. ```
  20.  
  21. </td>
  22. </tr>
  23. <tr>
  24. <td>
  25.  
  26. Retrieve a single todo from the server.
  27.  
  28. </td>
  29. <td>
  30.  
  31. ```js
  32. Todo.get({id: 5})
  33. ```
  34.  
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>
  39.  
  40. Create a todo by POSTing its data to the server.
  41.  
  42. </td>
  43. <td>
  44.  
  45. ```js
  46. var todo = new Todo({name: "learn CanJS"})
  47. todo.save()
  48. ```
  49.  
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>
  54.  
  55. Update a todo by PUTing its data to the server.
  56.  
  57. </td>
  58. <td>
  59.  
  60. ```js
  61. todo.complete = true;
  62. todo.save();
  63. ```
  64.  
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>
  69.  
  70. Destroy a todo by DELETing its data on the server.
  71.  
  72. </td>
  73. <td>
  74.  
  75. ```js
  76. todo.destroy();
  77. ```
  78.  
  79. </td>
  80. </tr>
  81. </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top