Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a Web application and Web API?

It sounds naive on hearing but how different are web application and Web API when someone mentions it in their paper? How different are they from their functionalities?

like image 361
N00b491 Avatar asked Jun 05 '16 15:06

N00b491


People also ask

What is the difference between API and application?

The biggest difference between an API (Application Programming Interface) and an App (short for application) is how each impacts the user. Both offer some form of connectivity, but while APIs are intended to be used by software applications, software applications themselves are intended to be used by humans.

Is REST API a web application?

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.

Do all web apps have an API?

Yes, there's overlap between the two: all web services are APIs, but not all APIs are web services. Both web services and APIs are — at their core — very useful and very much used today.

What are the 4 main types of web APIs?

APIs are broadly accepted and used in web applications. There are four principal types of API commonly used in web-based applications: public, partner, private and composite.


2 Answers

Very short: web application, it's a web site, which you see in your browser, and web api, it's a service, which you use in a web application.

See also Difference between ASP.NET MVC and ASP.NET Web API:

Asp.Net MVC is used to create web applications that returns both views and data but Asp.Net Web API is used to create full blown HTTP services with easy and simple way that returns only data not view.

like image 60
Alexan Avatar answered Oct 29 '22 00:10

Alexan


Web Applications are meant for their human interactions through views whereas Web API aka Web Services are meant for system-to-system interactions (information exchange programatically ). They exchange data.

like image 34
sanjeev Kumar Singh Avatar answered Oct 29 '22 00:10

sanjeev Kumar Singh