This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
How to differentiate between a normal get post handling and rest architecture
mayur dhawan
Greenhorn
Joined: Sep 20, 2005
Posts: 29
posted
0
Hi,
I am new to web 2.0 and REST.I have read some articles on REST .I could understand that the REST is a design pattern and in this , every item/thing to be exposed is treated as a URL.The client will hit this URL and get the resource.
So, I am confused that a normal get request on a URL, that is send on a servlet and processed.Is this the REST way.If yes , then we are doing it since the start of coding what's new in this. If no then please explain what extra needs to be done.
thanks in advance mayur
Tina Ma
Ranch Hand
Joined: Nov 29, 2007
Posts: 194
posted
0
REST uses a remote resource as an url instead of the elaborate remote procedure call.
Tina
SCJP 1.4, SCWCD 1.4
Ben Scofield
author
Greenhorn
Joined: May 20, 2008
Posts: 29
posted
0
Actually, I think you're pretty much correct - REST is a lot like the very first web pages a lot of us built, where a single URL corresponds to a single chunk of information. That resemblance is intentional, as REST was modeled in part on the early web.
One difference arises when you start to look at more complicated applications - instead of a multitude of pages, you get one (or a few) endpoints that you can access, each of which distributes your request to any one of many destinations.
Another difference is the restriction of actions to particular HTTP verbs - GET, in a RESTful system, for instance, is idempotent. POST is used to create a new resource. PUT is used to update an existing resource (or create a new one, in certain cases). DELETE is used to destroy an existing resource.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to differentiate between a normal get post handling and rest architecture