DWR 类似于 REST 的 Javascript 库

发布于 2024-07-29 11:20:38 字数 183 浏览 3 评论 0原文

是否有像 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苏大泽ㄣ 2024-08-05 11:20:38

这似乎是 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.

遗失的美好 2024-08-05 11:20:38

我即将为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文