Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Other REST-implementations than HTTP?

Tags:

rest

Writing a small internal presentation on REST, I got a little curious..

I know the WWW is the largest implementation of REST, and that REST was defined alongside HTTP 1.1, but are there any other implementations of the architectural style, besides HTTP?

like image 354
rogerkk Avatar asked Sep 15 '11 08:09

rogerkk


People also ask

Can REST be used other than HTTP?

REST APIs add no new capability to HTTP APIs. But it is an architectural style that was created in tandem with HTTP and most typically employs HTTP as its application layer protocol. However, REST isn't always linked to HTTP. You can use other transfer protocols, such as FTP, SMTP, etc.

Does REST work only with HTTP?

REST stands for REpresentational State Transfer. REST is almost like an architectural style, it doesn't care about the building materials per say. It can be used with HTTP, FTP, or any other communication protocol. REST just happens to be very commonly used with HTTP.

Is HTTP mandatory for REST API?

It's important to remember that the use of HTTP is not required for a RESTful system.


1 Answers

Thinking of magic triangle of REST:

  • Content-Type (representation)
  • Uniform interface (operations)
  • Nouns (the subjects the uniform-interface works on)

I can only see protocols or tools which take some of the principles but not all of them.

Example SQL

E.g. SQL has a uninform interface (DELETE,SELECT,INSERT,UPDATE) and kind of nouns (table + columns) but hasn't the representation part in its core (e.g. no way to say 'SELECT .... AS application/xml'.

As far as I have seen, HTTP is the "best" example implementing Rest-principles. To me HTTP is a perfect example how simplicity and powerfulness come together.

like image 137
manuel aldana Avatar answered Oct 22 '22 03:10

manuel aldana