advantage of REST in CF10 vs invoking remote method through ajax?

白昼怎懂夜的黑 提交于 2019-12-18 09:37:45

问题


Have anyone used REST in CF10 for production?

How is that better then ajax calling remote method, e.g. foo.cfc?method=blah?

Can you get your RESTful API pure stateless? Do you still rely on session cookie?


回答1:


REST and remote calls to a method are two entirely different options, neither of which are necessarily "better". REST services in CF are stateless by default. It's really up to you if you want to get sessions involved or any other state for that matter. I would suggest reading more about REST to see if it's the kind of API you'd like to build. Good luck!



来源:https://stackoverflow.com/questions/15012833/advantage-of-rest-in-cf10-vs-invoking-remote-method-through-ajax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!