RusticiSoftware / TinCanJS

JavaScript library for the Experience API (Tin Can API)
http://rusticisoftware.github.io/TinCanJS/
Apache License 2.0
207 stars 115 forks source link

Document APIs allow 'save' method to take an object #51

Open brianjmiller opened 11 years ago

brianjmiller commented 11 years ago

To prevent the need for end users to mess with etags and SHA1s make the LRS save methods take the existing object, and then update that object with the new etag on success. For now this may require always computing it client side as with PUT and 204 no updated Etag is returned.