In this course, you will learn how to register and configure ASP.NET Web API routes, how to implement ASP.NET Web API controller HTTP methods in Visual Studio 2017.
Learning Objectives
Working with ASP.NET Web API Routes
- Start the course
- implement a default Web API controller route in an ASP.NET MVC web application
- implement a custom Web API route that uses a controller action name in its route template in ASP.NET MVC web application
- register Web API controller routes with the Web API framework in an ASP.NET MVC web application
- use the NonAction attribute to prevent a controller method from being invoked as an action in an ASP.NET MVC web application
- use the ActionName attribute to override Web API controller action names in an ASP.NET MVC web application
- use the HttpRouteUrl helper to generate URLs in an MVC view that invoke Web API controller methods in an ASP.NET MVC web application
Working with ASP.NET Web API Controllers
- implement an HTTP GET method for a Web API controller in an ASP.NET MVC web application
- define an HTTP PUT method on a Web API controller to update a resource in an ASP.NET MVC web application
- configure the main view so that application data can be modified using view bindings to model properties in an ASP.NET MVC web application
- define an HTTP POST method on a Web API controller to create a new resource in an ASP.NET MVC web application
- configure the main view so that new application data can be added using view bindings to model properties in an ASP.NET MVC web application
- implement an HTTP DELETE method on a Web API controller to delete an existing resource in an ASP.NET MVC web application
- configure the main view so that application data can be deleted using view bindings to model properties in an ASP.NET MVC web application
Practice: Working with ASP.NET Web API Controllers
- define an HTTP PUT method on a Web API controller in a ASP.NET MVC web application in Visual Studio 2017