RESTful API and Web Services API

I am considering creating a small web-based learning application using .NET. My mystery is whether I should expose the application logic to other sites and applications through a REST API or a set of web services.

I am familiar with web services, but have not worked with REST. I understand the concept of REST, I just do not have practical experience.

Why should I use REST instead of web services for this scenario? Or not? What problems should I consider when developing a REST API, especially with .NET?

+6
rest architecture web-services
source share
2 answers

It has been set many times, for example.

  • Why use REST instead of SOAP-based services?
  • WSDL vs. REST Cons and Cons
  • SOAP or REST for web services?
+7
source share

.NET offers frameworks for both cases - the Windows Communication Foundation for Web Services and ADO.NET Data Services for the REST API.

Both technologies are powerful, but it seems to me that the REST API is a more reasonable solution. It is somewhat lighter.

Other ADO.NET data services have the advantage that it is very easy to retrieve data from a database in an interface β€” even full object graphs. A big win if you are developing a data center application.

0
source share

All Articles