开发者

Delete requests with Phils RESTserver is wrong?

I am struggling with delete requests using Codeigniter and Phils RESTserver.

As I understand a delete request is nor开发者_JAVA技巧mally sent in the URL (the ID) but now I am forced to send it as an "attachment", like a POST request and that does not work with my RestClient (appcelerator).

Is this a bug? How can I fix it?


I'm not sure what the bug is as you haven't really said what is happening.

 but now I am forced to send it as an "attachment"

Why are you being forced? Is there an error? Did you debug the value and find that nothing was being sent? What are you talking about?! :)

You can do this:

DELETE: /foo/bar/45

class Foo extends REST_Controller {
    public function bar_delete($id) {}
}

If that doesn't work then file a bug report ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜