Creating a Web Service for the Northwind Database
Explore how to create a web service with ASP.NET Core that accesses the Northwind database. Learn to configure Entity Framework Core, handle JSON and XML data formats through content negotiation, and set up media formatters. This lesson guides you through building a functional API without MVC views, preparing you to serve data to client applications efficiently.
We'll cover the following...
Unlike MVC controllers, Web API controllers do not call Razor views to return HTML responses for website visitors to see in browsers. Instead, they use content negotiation with the client application that made the HTTP request to return data in formats such as XML, JSON, or X-WWW-FORM-URLENCODED in their HTTP response.
The client application must then deserialize the data from the negotiated format. The most used format for modern web services is JavaScript Object Notation ...