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

查看:21
本文介绍了CF10 RESTful API 能做什么,而 Coldbox 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 是一个标准概念,所有的实现最终都遵循这些规范.已有框架,如 TaffyPowernap 和 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. 您可以使用自己对组件的理解,并将它们扩展为 RESTful Web 服务
  2. 基于标准 JAX-RS
    • 大量支持/应用程序可用于扩展(测试/自动化)......
    • 没有实施偏见,广泛可用/可接受

正如您将看到的那样,其中大部分是让语言本机"可用的好处,而不是相对于功能的比较,这就是我们实现它的原因.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.

拇指规则应该是在 CF10 之前使用任何适合您的口味,用例/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.

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

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

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

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