aspose 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
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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: 779

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: 56233
    
  13

REST is the noun. RESTful is the adjective.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 779

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: 56233
    
  13

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 779

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: 56233
    
  13

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

Joined: Sep 15, 2009
Posts: 779

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: 56233
    
  13

If it follows RESTful principles.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is the difference between REST and RESTful?
 
Similar Threads
Issues related to RESTful web servicers
REST in mobiles
Difference between servlet and restful webservice
How to implement a webservice in my application?
RestFul web services with Axis 2