{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/restangular/issues/171","labels_url":"https://api.github.com/repos/mgonto/restangular/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/restangular/issues/171/comments","events_url":"https://api.github.com/repos/mgonto/restangular/issues/171/events","html_url":"https://github.com/mgonto/restangular/issues/171","id":16739218,"number":171,"title":"addRestangularMethod difference paramter orders based on safety of HTPP Method","user":{"login":"2ix","id":2523492,"avatar_url":"https://avatars.githubusercontent.com/u/2523492?v=3","gravatar_id":"","url":"https://api.github.com/users/2ix","html_url":"https://github.com/2ix","followers_url":"https://api.github.com/users/2ix/followers","following_url":"https://api.github.com/users/2ix/following{/other_user}","gists_url":"https://api.github.com/users/2ix/gists{/gist_id}","starred_url":"https://api.github.com/users/2ix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2ix/subscriptions","organizations_url":"https://api.github.com/users/2ix/orgs","repos_url":"https://api.github.com/users/2ix/repos","events_url":"https://api.github.com/users/2ix/events{/privacy}","received_events_url":"https://api.github.com/users/2ix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgonto/restangular/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2013-07-15T04:31:37Z","updated_at":"2015-01-12T11:43:29Z","closed_at":"2013-07-27T22:17:01Z","body":"Consider we have an API Endpoint `POST /comments?m=delete` that accepts an array of comment id within the POST request.\r\n\r\n`?m=delete` is to tell the API we are invoking a special method on the comments resource 'delete' and we will pass the array of id in the body of the POST request.\r\n\r\nThe special method can be created by:\r\n```javascript\r\nRestangularConfigurer.addElementTransformer('comments', true, function(comments) {\r\n  comments.addRestangularMethod('remove', 'post', undefined, {m: 'delete'});\r\n  return comments;\r\n});\r\n```\r\n\r\nIf we call `Restangular.all('comments').remove()` we indeed get `POST /comments?m=delete` but as soon as we start adding in parameters `Restangular.all('comments').remove([5, 18, 42])` the URL becomes `POST /comments?0=5&1=18&2=42`.\r\n\r\nThus we lose our special `?m=delete` and parameters are being added to the query string rather than the body of the POST request.\r\n\r\nBug or what am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/mgonto/restangular/issues/comments/69558656","html_url":"https://github.com/mgonto/restangular/issues/171#issuecomment-69558656","issue_url":"https://api.github.com/repos/mgonto/restangular/issues/171","id":69558656,"user":{"login":"WaseemBepari","id":7858956,"avatar_url":"https://avatars.githubusercontent.com/u/7858956?v=3","gravatar_id":"","url":"https://api.github.com/users/WaseemBepari","html_url":"https://github.com/WaseemBepari","followers_url":"https://api.github.com/users/WaseemBepari/followers","following_url":"https://api.github.com/users/WaseemBepari/following{/other_user}","gists_url":"https://api.github.com/users/WaseemBepari/gists{/gist_id}","starred_url":"https://api.github.com/users/WaseemBepari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaseemBepari/subscriptions","organizations_url":"https://api.github.com/users/WaseemBepari/orgs","repos_url":"https://api.github.com/users/WaseemBepari/repos","events_url":"https://api.github.com/users/WaseemBepari/events{/privacy}","received_events_url":"https://api.github.com/users/WaseemBepari/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T11:43:29Z","updated_at":"2015-01-12T11:43:29Z","body":"how to use remove if url is 192.168.1.1:8000/timelog/list/145?projectId=12"}}