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

前端 未结 1 521
伪装坚强ぢ
伪装坚强ぢ 2020-12-22 07:33

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 RES

相关标签:
1条回答
  • 2020-12-22 08:20

    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!

    0 讨论(0)
提交回复
热议问题