Is there a plugin for any web browser which gives you a GUI to perform PUT's, DELETE's etc? I've written a navigable REST app, and I would like to be able to poke around a bit with my browser to try it out and to demo the API, but since they all lack DELETE and PUT it becomes cumbersome.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There are several FireFox plugins for that, including "Poster" and "REST client".
回答2:
You can poke around easily by serving http://www.aminus.net/wiki/Okapi alongside your regular site content. It allows not only DELETE and PUT, but any custom method. In addition, you have complete control over the headers.
It's a "meta-browser" of sorts, so not really good for a user- or exec-oriented demo. But it can sure help you see exactly what is being sent and received, and debug problems more quickly. It makes a great tool for other developers to discover your non-HTML RESTful apps, too.