• Post Reply Bookmark Topic Watch Topic
  • New Topic

RESTful API

 
Sam Ruben
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is RESTFUL API? How is it different from other API's?

-- kindly example in simple manner
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Questions of type "what is xyz?" are generally best directed at the general web. Wikipedia is usually a good place to start: RESTful API.
 
Sam Ruben
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just need some short and clear answer regarding it.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An HTTP API that uses the HTTP methods as verbs and the HTTP requests and response as envelopes.
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rose India site has such answers to basic questions directed at helping people cram for an interview:

http://www.roseindia.net/freemagazine/issue12/restful-web-services.shtml

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just be aware that roseindia is well-known for its poor practices and bad examples. Take anything you find there with a grain of salt. There are a lot better places on the web for information if you care to look for them.
 
Paul Clapham
Sheriff
Posts: 21884
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That RoseIndia page is short, it's true, but it completely fails to say anything about REST except that it isn't SOAP.
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Just be aware that roseindia is well-known for its poor practices and bad examples. Take anything you find there with a grain of salt. There are a lot better places on the web for information if you care to look for them.


I agree. It seems to me the OP was looking for an answer to an interview question, not practical examples of how to code. The OP wanted a one-sentence answer to a very broad question. That's why I clarified my post the way I did. In general, I believe its a poor practice to comb the web looking for answers to interview questions. If you don't have the experience to give intelligent answers, then my advice is get some more experience. I also think that people who memorize answers without practical experience are not worth as much as people who have actually done the work to begin with.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fielding would say that REST is an architectural style rather than an API - in contrast with SOAP which is a much more detailed protocol.

If I was doing an interview and the applicant said "REST is an API" I would suspect very superficial knowledge.

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I'd say that REST is the architectural style for creating RESTful APIs. But not enough to argue about.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!