Course duration
- 2 days
Course Benefits
- Gain an understanding of what ASP.NET Web API is and why it is useful
- Implement HTTP services using Web API and Visual Studio
- Consume HTTP services using both jQuery and the ASP.NET Web API client library
- Handle different media formats and content variations in Web API services
- Understand routing and binding in Web API
- Perform validation of request data
Public expert-led online training from the convenience of your home, office or anywhere with an internet connection. Guaranteed to run .
Private classes are delivered for groups at your offices or a location of your choice.
Course Outline
- Introduction to ASP.NET Web API
- ASP.NET Web API
- Representational State Transfer
- REST and Web API
- HTTP Services Using Web API
- Using Fiddler
- Web API vs. WCF
- Web API and HTTP
- HTTP Response Codes
- HttpResponseException
- Implementing POST
- Implementing PUT
- Implementing DELETE
- Media Formatters and Content Negotiation
- Internet Media Types
- Media Formatters
- JSON and XML Formatters
- Content Negotiation
- Accept and Content-Type Headers
- Using the Query String
- Custom Request Headers
- Serialization
- BSON Serialization
- JavaScript Clients
- Document Object Model
- jQuery
- Sending AJAX Requests
- Implementing a Client
- Binding, Validation and Routing
- Reading Raw HTTP Requests
- Route Data, Query String and Request Body
- Binding to Simple Types
- Binding to Complex Types
- Validation Using Data Annotations
- Routing in ASP.NET Web API
- Using Default Routes
- NET Clients
- Web API Client Libraries
- HttpClient
- Issuing GET Requests
- Issuing POST Requests
- Other Requests
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this ASP.NET class:
- Good working knowledge of C# and the .NET Framework.
- Basic knowledge of ASP.NET, HTML, and JavaScript
Instructor-led courses are offered via a live Web connection, at client sites throughout Europe, and at our Geneva Training Center.