Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST api vs REST Webservice vs RESTFul web service

Tags:

rest

REST (Representational State Transfer) is an architectural pattern/style. A service based on REST is called a RESTful service. What is Rest API ? and Is there any difference between Rest API, Rest Web service and Restfull web service ?

like image 916
Krish Avatar asked Nov 19 '15 06:11

Krish


3 Answers

A RESTful web service is the implementation of the REST API (Application Programmable Interface) or the REST spec. In this case you are also creating an API with your endpoints that you create. In a sense they are actually the same thing and are just two terms that are interchangeable in the context of your question. The wording may be a little confusing but tl;dr; RESTful Web Service == REST API == REST Web Service for this situation

Outside of the context of the OP's question an API is not the same as a Web Service. An API can mean any interface or library used to interact with anything from code. This can be a smart dishwasher API or Web Sockets or cell phone SMS or even jQuery. In that same sense a Web Service is just a kind of API that provides information over the web.

like image 106
SnareChops Avatar answered Feb 24 '23 09:02

SnareChops


The difference is merely a linguistic one. The difference between REST and RESTful is like the difference between BEAUTY and BEAUTIful. REST is a noun, whereas RESTful is an adjective.

like image 41
Miroslav Holec Avatar answered Feb 24 '23 09:02

Miroslav Holec


API means Application Programming Interface. A REST API or RESTful API is an API that is compliant to REST. REST is usually implemented using web technology, but REST does not strictly require web technology to be used. An example of a RESTful API is a RESTful web service or a set of RESTful web services.

To summarize:

  • REST API = RESTful API
  • REST Web service = RESTful Web service
  • A set of one or more logically related RESTful Web services is an example of a RESTful API
like image 20
www.admiraalit.nl Avatar answered Feb 24 '23 11:02

www.admiraalit.nl