Free Sample
+ Collection

ASP.NET Web API: Build RESTful web applications and services on the .NET framework

Joydip Kanjilal

An opportunity for ASP.NET web developers to advance their knowledge with a practical course, designed from the ground up, to help you investigate REST-based services with C# 5. An essential, real-world tutorial.
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849689748
Paperback224 pages

About This Book

  • Clear and concise guide to the ASP.NET Web API with plentiful code examples
  • Learn about the advanced concepts of the WCF-windows communication foundation
  • Explore ways to consume Web API services using ASP.NET, ASP.NET MVC, WPF, and Silverlight clients

Who This Book Is For

This book is for ASP.NET web developers who want to explore REST-based services with C# 5. This book contains many real-world code examples with explanations whenever necessary. Some experience with C# and ASP.NET 4 is expected.

Table of Contents

Chapter 1: Understanding Representational State Transfer Services
Understanding REST
Implementing RESTful services in .NET 4.5
Chapter 2: Understanding Resource and Service Oriented Architectures
Understanding SOA
A look at ROA
Resource Oriented and Service Oriented Architecture
Comparison of the three architectural styles
Chapter 3: Working with RESTful Services
Exploring Windows Communication Foundation (WCF)
Applying service behavior
New features in WCF 4.5
Making the service RESTful
Chapter 4: Consuming RESTful Services
Understanding AJAX
Introducing JSON and jQuery
Understanding Language Integrated Query (LINQ)
Security Service
Consuming Security Service
Understanding Windows Presentation Foundation
Chapter 5: Working with ASP.NET 4.5
Working with the OData protocol
New features in the .NET Framework 4.x
Introducing the new features in ASP.NET 4.5
Working with the ASP.NET Web API
Chapter 6: Working with RESTful Data Using Silverlight
Introducing Silverlight 5
WCF 4.5 RIA Services
Implementing a sample application
Chapter 7: Advanced Features
Best practices in using WCF
Best practices in using WCF services
Best practices in using the ASP.NET Web API

What You Will Learn

  • Build scalable REST-based services using the .NET framework
  • Build HTTP-based web services on the .NET platform
  • Explore the new features in Entity Framework 5 and how to work with them
  • Use the ASP.NET Web API with ASP.NET MVC 4 clients
  • Learn about the ADO.NET Entity Framework and write programs against the Entity Data Model using LINQ to perform CRUD operations
  • Implement Web API services using ASP.NET, ASP.NET MVC, WPF, and Silverlight clients

In Detail

The ASP.NET Web API was designed from the ground up to meet the need of developers who want to build HTTP/RESTful services. ASP.NET Web API is an HTTP service that uses HTTP as the application protocol and can return data based on the data format requested by the client. It is a lightweight web-based architecture that provides an easy-to-use set of default options while providing a deep extensibility infrastructure to meet the demands of any scenario using HTTP.

This book is a step-by-step, practical tutorial with a simple approach to help you build RESTful web applications and Web API services based on the .NET framework quickly and efficiently. This book provides complete coverage of RESTful services and the ASP.NET Web API in a lucid language with plenty of hands-on code examples.

The book starts with a description of REST-based architecture and WCF. It then explores the new features in ASP.NET 4.5 and introduces you to the new concepts in the ASP.NET Web API. There are also plentiful code examples throughout these sections to help you learn effectively.

You will then learn how to work with WCF REST-based services and the ASP.NET Web API and how to consume those services using various clients such as ASP.NET, ASP.NET MVC, WPF, and Silverlight.

In the second half of this book, we discuss the more advanced concepts of the ASP.NET Web API, best practices, and asynchronous programming concepts and how it can be implemented in C# 5.The most important thing you will take home from reading this book is a working knowledge on RESTful services, their architecture, how to build them, and also how to consume them with plenty of tips and techniques to better utilize this technology.


Read More