码迷,mamicode.com
首页 > Web开发 > 详细

php Restler 405 Method Not Allowed 问题解决啦

时间:2014-09-20 01:02:46      阅读:801      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   使用   ar   strong   

在学习Restler 3的时候,在看到 Example的CURD中,用Firefox的Rest Client使用GET,POST都可以,但是用PUT,DELETE出现了,

bubuko.com,布布扣

在网上找了资料,在微软必应和Yahoo(装B...),百度都找过了 "405 Method not Allowed"的问题了,但是看不懂呀。

最后我之前看到过,Restler 3有 Restler API Explorer来着的,我就尝试的安装了Restler API Explorer来看看,我安装好之间,我就看到了Swagger UI中列出了我写的方法。

如图:

bubuko.com,布布扣

我的数据:

bubuko.com,布布扣

我操作了DELETE操作,如下图:

bubuko.com,布布扣

操作完之后是:

bubuko.com,布布扣

,

Restler 3 中DB操作我是用 Respect\Relational

405 Method Not Allowed“问题终于解决了,可以继续看Restler 3的Example,学习了,嘻嘻。

Restler 3的github地址:https://github.com/Luracast/Restler

Restler API Explorer的地址:https://github.com/Luracast/Restler-API-Explorer

 

php Restler 405 Method Not Allowed 问题解决啦

标签:style   blog   http   color   io   os   使用   ar   strong   

原文地址:http://www.cnblogs.com/fsong/p/3982707.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!