Implementing REST Services using Web API

Contact Us for Dates
3 days practical workshop for up to 12 people.
Only £1185
REST has emerged in recent years as a tremendously important vehicle for creating flexible and standards-based Web services.

Layout

This course is a mixture of lectures and hands on exercises designed to reinforce the topics learnt

Training Course Objectives

  • Creating REST services using Web API
  • Advanced Web API 2 techniques
  • API architecture and modelling concepts
  • Working with OData
  • The importance of Hypermedia in REST
  • Building secure REST services
  • Implementing Quality of Service features
  • Deploying and hosting REST services

Training Course Prerequisites

  • 6 months experience of C# programming
  • Familiarity with ASP.NET MVC is beneficial

Chapters

Chapter 1 Essential Concepts

  • Overview of REST
  • HTTP methods, requests, responses, and headers
  • Creating a simple REST service using Web API

Chapter 2 Web API 2 Techniques

  • Managing flexible HTTP requests and responses
  • Dependency injection
  • HTTP message handlers
  • Filters
  • File uploading

Chapter 3 Model Binding

  • REST and MIME types
  • Content negotiation
  • Media formatters for XML, JSON, and BSON
  • Creating a custom model formatter
  • Configuration

Chapter 4 REST Clients

  • Consuming REST services in .NET
  • Consuming REST services in web and mobile clients
  • Additional types of client

Chapter 5 Managing Routes

  • Web API routing mechanisms
  • Route parameters
  • Best practices for designing APIs and routes
  • Architectural considerations and best practice

Chapter 6 Working with OData

  • Overview of OData
  • Defining a data model
  • Configuring an OData endpoint
  • Implement CRUD operations
  • Advanced techniques

Chapter 7 Building Hypermedia-Driven REST Services

  • Overview of Hypermedia
  • Understanding HATEOAS (Hypermedia as the Engine of Application State) constraints
  • Understanding HAL (Hypertext Application Language)
  • Implementing Hypermedia solutions using Web API

Chapter 8 Security

  • Using SSL and HTTPs
  • Authentication and authorization options
  • ASP.NET identity
  • Using OAuth2
  • Using Windows Azure ACLs
  • Enabling Cross-Origin requests
  • Preventing Cross-Site Request Forgery (CSRF) attack

Chapter 9 Practical Considerations

  • Documenting a REST API
  • Logging
  • Error handling
  • Testing
  • Performance
  • Scalability
  • Versioning

Chapter 10 Deployment and Hosting

  • Deployment to IIS
  • Deployment to Windows Azure
  • Self-hosting using OWIN