Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

rest

api

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.

Looking forward to getting your advices/opinions, thanks!

like image 391
Marius Butuc Avatar asked May 15 '10 13:05

Marius Butuc


People also ask

Which language is best for creating REST API?

XML: JSON and XML are the two de facto standards for sending and receiving data in REST APIs. Web programming languages such as Python, JavaScript, Ruby on Rails, and Java all have tools for parsing and working with XML and JSON.


2 Answers

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.

  • If you haven't read chapter 5 of Roy Fielding's dissertation, I'd start from there. It's an excellent piece of writing, and what better source to learn from than the master himself.

  • Infoq is an excellent source for REST articles, helped me significantly, here is a compilation of REST resources. Also on Infoq read this excellent article by Allamaraju.

  • If you are looking at books, the two that I liked so far: RESTful Web Services Cookbook and RESTful Web Services

  • As you are looking for Java-based services -- I'd get familiar with Jersey and/or RESTEasy. Write as many small programs as you can, what's the best way to get familiarized.

  • When you are at a point to try an exciting RESTful framework that's based on Hypermedia constraint I'd explore Restfulie.

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

like image 150
Surya Suravarapu Avatar answered Sep 22 '22 00:09

Surya Suravarapu


I found REST in Practice to 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).

like image 20
Will Sargent Avatar answered Sep 24 '22 00:09

Will Sargent