Coldbox RESTful API不能做什么CF10 RESTful API?反之亦然吗? [英] What can CF10 RESTful API do that Coldbox RESTful API cannot do? And vise versa?

查看:267
本文介绍了Coldbox RESTful API不能做什么CF10 RESTful API?反之亦然吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚开始看一些MVC JS框架/库,他们大多数期望一个RESTful API端点,它让我想...我能做什么使用CF10,不能使用CF9 + ColdBox RESTful支持,而反之亦然?

Just started looking at some MVC JS framework / library and most of them expect a RESTful API endpoint, which got me thinking... what can I do using CF10 that cannot be done using CF9 + ColdBox RESTful support, and vise versa?

谢谢。

推荐答案

Restful webservices是一个标准概念所有的实施最终都遵守这些规范。已有现有的框架,例如 Taffy Powernap 以及像ColdBox 3,Mach II这样的框架,可以帮助在ColdFusion中创建安静的服务。我对他们提供给用户的完整性和授权方面做得非常出色。区别在于它们的使用方式,它们如何让您创建服务。有些遵循惯例,其他配置与自己的DSL等和一些功能,他们提供。

Restful webservices is a standard concept and all the implementation eventually adhere to those norms. There are already existing frameworks like Taffy, Powernap and frameworks like ColdBox 3, Mach II which can help create restful services in ColdFusion. And I they do a terrific job in terms of completeness and empowerment offered to the users. The difference much lies in the way they enable it, how do they let you create your services. Some follow convention others configuration with their own DSL etc and somewhat in terms of features they offer.

ColdFusion 10具有原生的restful web服务支持。它为表格带来的是:

ColdFusion 10 has native restful webservices support. What it brings to the table is:


  1. 您可以使用自己对组件的理解,并将它们扩展为可靠的网络服务

  2. 基于标准JAX-RS

    • 可扩展(测试/自动化)的支持/应用程序数量。


  1. You can use your own understanding of components and extend them as restful webservices
  2. Based on standard JAX-RS
    • Tons of support/ applications available for extending (testing/automation)....
    • No implementation biasness, widely available/acceptable

正如你将看到的,大多数这些都是让语言本地可用的好处,这就是为什么我们实施它。 IMO没有任何比较。我想看到所有框架利用本机可用的功能,并在其上构建。

As you will see most of these are benefits of having it "natively" available to the language rather than a vis a vis comparison of features and that is why we have implemented it. IMO there isn't any comparison at all. I would like to see all frameworks take the advantage of natively available feature and build on top of it.

Thumb规则应该是CF10之前使用任何适合您的口味,usecase / post CF10发布使用本机可用或任何框架使用相同。

Thumb rule should be pre CF10 use any one which suits your taste, usecase/ post CF10 release use natively available or any framework which utilizes the same.

谨慎之词:每一个框架作者都会偏向自己的判断,然后才能跳跃。

Word of caution: Every framework author would be biased towards their own so judge before you take the leap.

ps我已经在ColdFusion10中实现了Rest支持:)

p.s. I have implemented Rest support in ColdFusion10 :)

这篇关于Coldbox RESTful API不能做什么CF10 RESTful API?反之亦然吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆