News

Azure For IT Professionals

Learn more about implementing Azure as part of your infrastructure.

Staying Sharp on Microsoft Office Can Save Time & Money

Learning the latest Microsoft Office tips and tricks can benefit you greatly.

"How do I determine if this new technology is for real?"

Michael Bird explains how to navigate new technology waters.

CONTACT US
Training partners

Spindustry Training

spindustrytraining.com - (515) 334-9556

Bookmark and Share

Building and Consuming REST Services Using ASP.NET Web API 2 with C#

Course Code: STT WEBAPI
Length: 5 Days
Tuition: $2,495.00

Schedule for this Course

There are no dates scheduled for this course.
If you would like to be added to the wait list for this class Click Here

Course Description:

This Web API using C# course teaches students to develop and consume ASP.NET Web API services using C# and Visual Studio 2013 and 2015. This course focuses on real world WEB API examples with SOA architecture and data access.You will cover everything from dataaccess to business logic to service consumption and security from a SOA perspective as it pertains to WEB API. Consumer Apps will focus on ASP.NET MVC and SPA projects.

IF YOU ARE TIRED OF WEB API COURSES THAT HAVE EXAMPLES THAT EMBED DATA ACCESS CODE INTO THE WEBSERVICE ITSELF THEN THIS IS THE COURSE FOR YOU.

Training Objectives

  • Gain an understanding of Web API architecture and how it differs from WCF
  • Build Data Driven SOA Projects using Web API and the Entity Framework
  • Build HTTP services using Web API and Visual Studio 2013 and 2015
  • Consume HTTP services using both MVC and SPA clients library
  • Write Consumer code in both Javascript using AJAX and C#
  • Handle different media formats specifically JSON and XML
  • Understand routing and attribute routing in Web API
  • Perform client side and server side validation of request data
  • Enable Cross Origin Requests CORS in WEB API
  • Secure a Web API using tokens
  • Implement Breeze Controllers with Web API
  • Handle Databinding in Web API consumers using KnockoutJS, MVC Razor and Angular.
     

Prerequisites

  • Real world knowledge of C# and the .NET Framework.
  • Basic knowledge of ASP.NET, HTML and JavaScript is also required.

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

  • Controllers
  • Models
  • Controller Action Methods
  • Routing
  • Default Routes
  • Custom Routes
  • Attribute Routing
  • Return types
  • passing parameters
  • passing objects
  • Implementing GET
  • Implementing POST
  • Implementing PUT
  • Implementing DELETE
  • Heavy Hands On
  • Summary

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
  • Heavy Hands On
  • Summary

Data Access with WEB API and EF

  • Separation of Concerns
  • Data Access Layer
  • Business Logic Layer
  • Service Layer
  • Domain Models vs DTOS
  • Mapper classes
  • Breeze Controllers
  • Custom Request Headers
  • Serialization

MVC Clients

  • Cross Origin Requests CORS
  • Document Object Model
  • jQuery
  • Sending AJAX Requests
  • Web API Client Libraries
  • HttpClient
  • Issuing GET Requests
  • Issuing POST Requests
  • Other Requests
  • Implementing a Client

Validation

  • Validation Using Data Annotations
  • Validation without Data Annotations
  • Heavy Hands On
  • Summary

SPA Clients with Angular JS

  • Issuing GET Requests
  • Issuing POST Requests
  • Other Requests
  • Heavy Hands On
  • Summary
  • Token Based Authentication with OAuth
  • Heavy Hands On
  • Summary
     

back to top