Skip to content

Instantly share code, notes, and snippets.



Created Sep 15, 2012
What would you like to do?
// All taken from
// When creating a new REST based pipe, a recordId can be configured
// An app using the lib can then use what ever record identifier it wants = function( pipeName, recordId, settings ) { ... }
// Then during a save, I can check for a value assigned to that id to determine the request type
type = data[ this.recordId ] ? "PUT" : "POST";
// After that we get into whether or not data sync is happening, etc. but I do not rely on a particular record identifier
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.