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 ?
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.
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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With