如何设置我阅读教程http://code.tutsplus.com/tutorials/working-with-restful-services-in-codeigniter-2--net-8814 . 但我无法理解,我想要更多细节 . 我是CodeIgniter和API的新手 .
我从nettuts文章中做了以下步骤
-
下载restclient和restserver以及curl
-
我尝试从rest-server运行示例,它没有向我显示任何内容 . 我加载自己的控制器和方法
如何设置我阅读教程http://code.tutsplus.com/tutorials/working-with-restful-services-in-codeigniter-2--net-8814 . 但我无法理解,我想要更多细节 . 我是CodeIgniter和API的新手 .
我从nettuts文章中做了以下步骤
下载restclient和restserver以及curl
我尝试从rest-server运行示例,它没有向我显示任何内容 . 我加载自己的控制器和方法
1 回答
这是侦听客户端(restClient)请求的服务器 . RESTServer有Request方法:POST()
得到()
放()
删除()
当你从RESTClient调用它时,请记住
index_put();
这些用法,你会称之为:不
这是一个简单的例子:
RESTClient实现: