Skip to content

Instantly share code, notes, and snippets.

@mgonto
Last active December 16, 2015 00:58
Show Gist options
  • Save mgonto/5351123 to your computer and use it in GitHub Desktop.
Save mgonto/5351123 to your computer and use it in GitHub Desktop.
Restangular create
// Option 1
// POST /accounts/123/buildings
account.post('buildings', building)
// Option 2
// POST /accounts/
account.post(newAccount)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment