Skip to content

Instantly share code, notes, and snippets.

@justinbmeyer justinbmeyer/
Last active Mar 19, 2019

What would you like to do?
show More Info

Retrieve an Todo.List from the server.

Todo.getList({filter: {complete: true}})

Retrieve a single todo from the server.

Todo.get({id: 5})

Create a todo by POSTing its data to the server.

var todo = new Todo({name: "learn CanJS"})

Update a todo by PUTing its data to the server.

todo.complete = true;;

Destroy a todo by DELETing its data on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.