Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RESTful API vs Web Service API

I am looking at doing a small web application for learning purposes, using .NET. My conundrum is whether I should be exposing application logic to other sites and applications via a REST API, or a set of Web Services.

I am familiar with web services, but have not worked with REST. I understand the concepts of REST, I just have no practical experience with it.

Why would I use REST instead of web services for this scenario? Or not? What the issues that I should be mindful of when designing a REST API, particularly with .NET?

like image 932
Rhys Jones Avatar asked Jul 15 '09 09:07

Rhys Jones


People also ask

Is a REST API a Web API?

Overview. A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.

What is difference between API & Web service?

Both APIs and web services are technologies that enable the transfer of data between separate software applications. API is an interface that exposes an application's data to outside software, whereas web applications are one type of API with stricter requirements.


1 Answers

Has been asked many times, e.g.

  • Why would one use REST instead of SOAP based services?
  • WSDL vs REST Pros and Cons
  • SOAP or REST for Web Services?
like image 62
VolkerK Avatar answered Sep 30 '22 20:09

VolkerK