Skip to content

Instantly share code, notes, and snippets.

@mgonto
Created April 27, 2013 01:38
Show Gist options
  • Select an option

  • Save mgonto/5471535 to your computer and use it in GitHub Desktop.

Select an option

Save mgonto/5471535 to your computer and use it in GitHub Desktop.
Restangular CUSTOM methods one
//GET /messages/123/archive
Restangular.one("messages", 123).customGET("archive")
//POST /messages/clear-all?param=param2 with body of {force: true}
Restangular.all("messages").customPOST("clear-all", {param: "param2"}, {}, {force: true})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment