DWR 类似于 REST 的 Javascript 库
是否有像 DWR 这样的 Javascript 库可以为 REST api 生成 javascript 存根。 我们在服务器上使用 Jersey/JSR-311 进行 REST,并且想知道是否有一个库可以采用使用 JSR311 注释注释的 Rest 类并像 DWR 那样创建 javascript 存根,而不是使用 Jquery 或 dojo 等库?
Is there a Javascript library like DWR that can generate javascript stub for REST api. We are using Jersey/JSR-311 for REST on server and was wondering that instead of using libraries like Jquery or dojo if there is a library that can take a Rest class annotated using JSR311 annotations and create javascript stub like DWR does?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎是 RESTEasy 相对于 Jersey 的一大优势。 请参阅http://docs.jboss.org/ resteasy/docs/2.0.0.GA/userguide/html/AJAX_Client.html 了解更多信息。
我不知道该功能是否适用于 Jersey。
我希望看到的是:为 REST 和 SOAP 页面生成 API 测试页面,就像 .NET 那样。
This seems like one of the big benefits of RESTEasy over Jersey. See http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html/AJAX_Client.html for more info.
I don't know whether the functionality works on Jersey or not.
What I'd like to see: Generated API test pages for REST and SOAP pages, like .NET has.
我即将为 JAX-RS 的 JBoss 实现 RESTEasy 提交这样的事情。 您可以在一个月内期待它。 如果有牵引力的话,它甚至可能变得便携并适用于泽西岛。
I am about to commit such a thing for RESTEasy, the JBoss implementation of JAX-RS. You can expect it within a month. It might even become portable and work for Jersey if there is traction.