{"action":"created","issue":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/688","repository_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver","labels_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/688/comments","events_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/688/events","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/688","id":170810718,"number":688,"title":"DELETE parameters","user":{"login":"pawelduszczak","id":20207676,"avatar_url":"https://avatars.githubusercontent.com/u/20207676?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelduszczak","html_url":"https://github.com/pawelduszczak","followers_url":"https://api.github.com/users/pawelduszczak/followers","following_url":"https://api.github.com/users/pawelduszczak/following{/other_user}","gists_url":"https://api.github.com/users/pawelduszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelduszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelduszczak/subscriptions","organizations_url":"https://api.github.com/users/pawelduszczak/orgs","repos_url":"https://api.github.com/users/pawelduszczak/repos","events_url":"https://api.github.com/users/pawelduszczak/events{/privacy}","received_events_url":"https://api.github.com/users/pawelduszczak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/labels/Investigating","name":"Investigating","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"chriskacerguis","id":2414647,"avatar_url":"https://avatars.githubusercontent.com/u/2414647?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskacerguis","html_url":"https://github.com/chriskacerguis","followers_url":"https://api.github.com/users/chriskacerguis/followers","following_url":"https://api.github.com/users/chriskacerguis/following{/other_user}","gists_url":"https://api.github.com/users/chriskacerguis/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskacerguis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskacerguis/subscriptions","organizations_url":"https://api.github.com/users/chriskacerguis/orgs","repos_url":"https://api.github.com/users/chriskacerguis/repos","events_url":"https://api.github.com/users/chriskacerguis/events{/privacy}","received_events_url":"https://api.github.com/users/chriskacerguis/received_events","type":"User","site_admin":false},"assignees":[{"login":"chriskacerguis","id":2414647,"avatar_url":"https://avatars.githubusercontent.com/u/2414647?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskacerguis","html_url":"https://github.com/chriskacerguis","followers_url":"https://api.github.com/users/chriskacerguis/followers","following_url":"https://api.github.com/users/chriskacerguis/following{/other_user}","gists_url":"https://api.github.com/users/chriskacerguis/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskacerguis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskacerguis/subscriptions","organizations_url":"https://api.github.com/users/chriskacerguis/orgs","repos_url":"https://api.github.com/users/chriskacerguis/repos","events_url":"https://api.github.com/users/chriskacerguis/events{/privacy}","received_events_url":"https://api.github.com/users/chriskacerguis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-08-12T07:01:30Z","updated_at":"2016-10-17T05:54:51Z","closed_at":null,"body":"Hi.\r\n\r\nI've been testing this library and I have one issue with DELETE.\r\n\r\nI'm sending simple request:\r\n`DELETE http://site.com/api/user/id/0`\r\n\r\nI was expecting parameter `id` to be returned by the method `$this->delete('id')` and that did not happened. Parameter was instead reachable by `$this->get('id')`.\r\n\r\nI did some simple modification to combine `_delete_args` with URI params:\r\n`protected function _parse_delete()\r\n    {\r\n        // These should exist if a DELETE request\r\n        if ($this->input->method() === 'delete')\r\n        {\r\n\t\t\t$this->_delete_args = array_merge($this->input->input_stream(), $this->uri->uri_to_assoc());\r\n        }\r\n    }`\r\n\r\nBut i'm not sure that this solution is proper. Can You tell me what can be the problem i can't get params with `$this->delete('param_name')`?\r\n\r\nHere is also raw request - response data from my tests before modification, where \"error\" is returned due to lack of \"id\" in \"delete\" method:\r\n\r\nDELETE http://site.com/api/user/id/0\r\n\r\n -- response --\r\n400 Bad Request\r\nServer:  nginx/1.6.2\r\nDate:  Fri, 12 Aug 2016 07:00:11 GMT\r\nContent-Type:  application/json; charset=utf-8\r\nConnection:  keep-alive\r\nSet-Cookie:  csrf_cookie_aw_cms=84a3044ab615870d6f71c13b2bb8a9ab; expires=Fri, 12-Aug-2016 09:00:11 GMT; Max-Age=7200; path=/ cisession=562b51a6ad0f8feef0c2b8a414ce5afa255be2b0; expires=Fri, 12-Aug-2016 09:00:11 GMT; Max-Age=7200; path=/; HttpOnly\r\nExpires:  Thu, 19 Nov 1981 08:52:00 GMT\r\nCache-Control:  no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma:  no-cache\r\nVary:  Accept-Encoding\r\nTransfer-Encoding:  chunked\r\n\r\n$this->delete()\r\narray(0) {\r\n}\r\n$this->get()\r\narray(1) {\r\n  [\"id\"]=>\r\n  string(1) \"0\"\r\n}\r\n$this->post()\r\narray(0) {\r\n}\r\n$this->put()\r\narray(0) {\r\n}\r\n{\"message\":\"Method delete ERROR\",\"id\":0}"},"comment":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/comments/254118535","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/688#issuecomment-254118535","issue_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/688","id":254118535,"user":{"login":"pawelduszczak","id":20207676,"avatar_url":"https://avatars.githubusercontent.com/u/20207676?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelduszczak","html_url":"https://github.com/pawelduszczak","followers_url":"https://api.github.com/users/pawelduszczak/followers","following_url":"https://api.github.com/users/pawelduszczak/following{/other_user}","gists_url":"https://api.github.com/users/pawelduszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelduszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelduszczak/subscriptions","organizations_url":"https://api.github.com/users/pawelduszczak/orgs","repos_url":"https://api.github.com/users/pawelduszczak/repos","events_url":"https://api.github.com/users/pawelduszczak/events{/privacy}","received_events_url":"https://api.github.com/users/pawelduszczak/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T05:54:51Z","updated_at":"2016-10-17T05:54:51Z","body":"Yeah, it's not a big deal but also it doesn't work as expected in my opinion. Lack of any explenation or solution also is not a good sign. Chaging headers for delete method do not seems to be the right way. I expected to reach all variables by using method for specific action and that is just not the case here and exaclty this is the issue."}}
{"actor":{"display_login":"pawelduszczak"}}