Web API & JSON
ASP.NET Core MVC
What is Web API?
API is a set of functions, protocols and tools for
building software and applications.
a type of API that allows communication and
interaction between software applications
Web API is often used to provide an interface
for websites and client applications to have
data access
Web APIs can be used to access data from a
database and save data back to the database
API
API
Database Connectivity
Problem without Web API
Duplicate logic for each Application
Differ in data processing efficiencies.
Some Front-end frameworks cannot
communicate directly with the
Database
Hard to Maintain
Web API
Web API
Web API
The HTTP Protocol is utilized by Web
API, a concept that is used to
increase an application’s capabilities.
A web-based application alone is no
longer sufficient to reach all its users
or clients
Is enhanced form of the web
application to provide services on
different devices like laptop, mobile
and others.
Advantages of Web API
Using Web API, we can avoid code
duplication
Extend Application Functionality
Abstraction
Security
Features in ASP.NET Core Web API
Cross Platform
Backward Compatibility
Faster
Static Content