From the course: Learning ASP.NET

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Get started with ASP.NET Web API

Get started with ASP.NET Web API

From the course: Learning ASP.NET

Start my 1-month free trial

Get started with ASP.NET Web API

- [Instructor] ASP.NET Web API is a framework for building RESTful APIs using the HTTP protocol. REST is an architecture that allows systems to communicate over HTTP. One of the advantages of Web API is that it can be consumed by different clients like web, mobile, and desktop apps. Let's get started by building a simple Web API that returns a list of students. Go to the File menu and New Project. Under Visual C# and Web, select the ASP.NET Web Application Template. Name it Roux Academy Api, and add it to the solution, and hit OK. On this screen, select the Empty template. We could have selected Web API, but that adds MVC content that we don't need for this demo. Under Add folders and core references for, go ahead and check Web API, and click OK. The reason we created a project for the API is to maintain and deploy it separately. It is possible though to add API controllers directly to an application. For example, go ahead and right-click MVCApplication and go to Add, New Item, and…

Contents