File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes What is the difference between REST and RESTful? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "What is the difference between REST and RESTful?" Watch "What is the difference between REST and RESTful?" New topic
Author

What is the difference between REST and RESTful?

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi guys, I want to know what is the difference between REST and RESTful. I am thinking that both are same. My thinking about REST/RESTful is

1. It is not a specification like SOPA. I mean SOAP has some rules to form the request, or while generating response, there is a particular way of structuring the code, writing WSDLs etc. Whereas REST has no rules like that.
2. It is an approach. Approach in the sense, if I code my servlet to give json or xml or plain text depending on the user requirements as a response, it means I achieved basic REST. Any program running anywhere can hit my servlet through a URI and can consume the response.

This is what I think about REST/RESTful.

On the other side others say that REST and RESTful are both different. REST has no specification, it is an approach. Where as RESTful is a specification given by Java under JSR-311 to address/achieve REST in java based web applications.

Can anyone explain me whether they are really different or both are the same.

Thank you in advance, good day.


Love all, trust a few, do wrong to none.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

REST is the noun. RESTful is the adjective.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Bear Bibeault wrote:REST is the noun. RESTful is the adjective.
Lolz. Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

This post helped me understand a bit. http://stackoverflow.com/questions/1568834/whats-the-difference-between-rest-restful

But still I am having a doubt. According to the answers in the post REST is an architectural style and RESTful is referred to as web services implementing that architecture. My doubt is if my application is implementing REST, is my application represented to as RESTful web services or is JSR-311 is referred to as RESTful web services?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

JSR-311 is just one way to implement a RESTful API.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Bear Bibeault wrote:JSR-311 is just one way to implement a RESTful API.
So you mean to say my application is the RESTful api. Right?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

If it follows RESTful principles.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between REST and RESTful?