Rather than mentally mapping REST verbs onto traditional CRUD verbs, I recall a quote from TBL to the effect of "Uniform Resource Locator is the term you get when you squeeze 'remote object reference' through a standards process". I think of PUT as being like Python's __init__ method, constructing a new instance with the given details; DELETE is like Python's __del__ method, cleaning up references and removing it; GET is like Python's __str__ method, returning a readable representation of the object's state, and POST is like Python's __call__, invoking the object as a function with some given arguments and who-knows-what side-effects.
Comments
Rather than mentally mapping REST verbs onto traditional CRUD verbs, I recall a quote from TBL to the effect of "Uniform Resource Locator is the term you get when you squeeze 'remote object reference' through a standards process". I think of PUT as being like Python's __init__ method, constructing a new instance with the given details; DELETE is like Python's __del__ method, cleaning up references and removing it; GET is like Python's __str__ method, returning a readable representation of the object's state, and POST is like Python's __call__, invoking the object as a function with some given arguments and who-knows-what side-effects.