54. Roy Fielding
Architectural Styles and the
Design of Network-based Software Architectures
http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
168. var store = $.cloudkit;
store.boot({
success: function() {
// do something
},
error: function(status) {
// fail gracefully
}
});
169. var store = $.cloudkit;
store.boot({
success: function() {
// do something
},
error: function(status) {
// fail gracefully
}
});
170. // insert a 'todo'
store.collection('todos').create({name:quot;fooquot;}, {
success: function(todo) {
// do something with the todo
alert(todo.json().name);
}
});
171. // insert a 'todo'
store.collection('todos').create({name:quot;fooquot;}, {
success: function(todo) {
// do something with the todo
alert(todo.json().name);
}
});
172. // insert a 'todo'
store.collection('todos').create({name:quot;fooquot;}, {
success: function(todo) {
// do something with the todo
alert(todo.json().name);
}
});
173. // insert a 'todo'
store.collection('todos').create({name:quot;fooquot;}, {
success: function(todo) {
// do something with the todo
alert(todo.json().name);
}
});
174. // insert a 'todo'
store.collection('todos').create({name:quot;fooquot;}, {
success: function(todo) {
// do something with the todo
alert(todo.json().name);
}
});
175. // update the 'todo'
todo.update({name:quot;barquot;} {
success: function() {
// updated remotely, ready for use
alert(todo.json().name); // now “bar”
},
error: function(status) {
// fail gracefully or recover
}
});
176. // update the 'todo'
todo.update({name:quot;barquot;} {
success: function() {
// updated remotely, ready for use
alert(todo.json().name); // now “bar”
},
error: function(status) {
// fail gracefully or recover
}
});
177. // update the 'todo'
todo.update({name:quot;barquot;} {
success: function() {
// updated remotely, ready for use
alert(todo.json().name); // now “bar”
},
error: function(status) {
// fail gracefully or recover
}
});
178. // update the 'todo'
todo.update({name:quot;barquot;} {
success: function() {
// updated remotely, ready for use
alert(todo.json().name); // now “bar”
},
error: function(status) {
// fail gracefully or recover
}
});
179. // update the 'todo'
todo.update({name:quot;barquot;} {
success: function() {
// updated remotely, ready for use
alert(todo.json().name); // now “bar”
},
error: function(status) {
// fail gracefully or recover
}
});