
Learn to build rest APIs with C# .NET by exploring web api fundamentals, project setup, controllers, routing, binding, and data formats in an ASP.NET Web API project.
Explore web api basics, including the request-response flow, controller and model roles, and how frameworks like MVC and WCF handle service messaging and contracts.
Explore web api controllers, action methods, and return types, learn how get and post work with primitive or complex results, and test endpoints with Postman using routing and naming conventions.
Configure a .NET REST API using a global configuration class, callbacks, and bundled registrations to set properties like filters, formatters, and message handlers, ensuring configuration occurs in the configuration class.
Explore routing in a C# .NET REST API by comparing convention-based routing with attribute-driven routes, mapping controllers and actions, and handling parameters to expose data through multiple endpoints.
Learn parameter binding by handling primitive parameters in get requests and complex parameters in post requests, with complex types pulled from the body and primitives from the query string.
Explore action return types in rest apis with c# .net by posting and returning an employee object, while handling response messages and 200 ok results.
Explore how web api data formats are negotiated via content-type and accept headers, and how objects are serialized to json or xml in rest using c# and dotnet.
Learn how media type formatters in C# .NET REST APIs handle different formats, explore the four available formatters, and configure camel case and serializer settings for responses.
Apply Web API filters in C# .NET to run code before and after actions, using a log attribute for logging, exception handling, and performance measurement on controllers or actions.
Build a C# console app that uses HttpClient to send data to a Web API and receive responses, install the required package, and process the response content.
ASP.NET Web API provides ideal platform for build restful services, it supports ASP.NET request/response pipeline and supports HTTP protocol. The course covers both core and advanced topics such as:
- Web API Controller
- Configuration
- Routing
- Parameter Binding
- Action Return Type
- Data formats
- Filters
- HttpClient for consuming Web/REST API
- Hosting - Web/REST API
Course also includes a project on building a restful service using Web API. Students will learn core concepts on Web API, comparison with WCF, tools for accessing web api with a project on building a REST application.