学习如何在 Java 中创建 RESTful API 的最佳来源是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2840275/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 13:30:02  来源:igfitidea点击:

What's the best source for learning how to create RESTful APIs in Java?

javaapirest

提问by Marius Butuc

I'm looking for a book or any other resource that will help me learn how to create RESTful APIs in Java. Looking on Amazon, I saw that there are several solutions for RESTful Java, but I'm looking for the one that is tailored to a novice.

我正在寻找一本书或任何其他资源来帮助我学习如何在 Java 中创建 RESTful API。在亚马逊上看,我看到RESTful Java几种解决方案,但我正在寻找适合新手的解决方案。

Looking forward to getting your advices/opinions, thanks!

期待得到您的建议/意见,谢谢!

采纳答案by Surya Suravarapu

I don't think I can point to only one resource but I would take a path (which you can customize based on your level of understanding of REST). I'm somebody who would like to get my concepts real clear first and then think about the tools to implement the concepts.

我不认为我只能指向一个资源,但我会选择一条路径(您可以根据您对 REST 的理解水平对其进行自定义)。我是一个想先弄清楚我的概念,然后再考虑实现这些概念的工具的人。

Obviously, I haven't provided a single resource, but something in the lines I've provided would serve well, IMO.

显然,我没有提供单一资源,但我提供的内容会很好,IMO。

回答by Bozhidar Batsov

I'd recommend this extensive NetBeans tutorial, this Sun tutorialand maybe having at look at the Restletframework.

我会推荐这个广泛的NetBeans 教程这个 Sun 教程,也许还可以看看Restlet框架。

回答by Pascal Thivent

My recommendation would be this one:

我的建议是这个:

alt text

替代文字

回答by dafmetal

I have used RESTlet in Actionto learn about REST concepts. It's an early access book so only the first few chapters are currently available, but I found the writing to be very clear.

我已经使用RESTlet in Action来了解 REST 概念。这是一本抢先体验的书,所以目前只有前几章可用,但我发现文字非常清晰。

回答by Will Sargent

I found REST in Practiceto be the best book covering different styles of REST architectures. It's also far more practical in its advice than many other books (I wasn't impressed by RESTful Web Services as I think it lacks focus).

我发现REST in Practice是涵盖不同风格的 REST 架构的最好的书。它的建议也比许多其他书籍更实用(我对 RESTful Web 服务没有印象,因为我认为它缺乏重点)。