Email the Author

You can use this page to email Akhil Mittal about Diving into ASP.NET WebAPI.

Please include an email address so the author can respond to your query

This message will be sent to Akhil Mittal

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

This book will be to focus on how we can develop basic enterprise level application architecture with Web API’s. The complete book will be in a way that focuses on less theory and more practical scenarios to understand how RESTful services can be created using an ORM (Object-relational mapping) i.e Entity Framework here. The first chapter in the book is to set up a basic architecture of REST service based application using Asp.net MVC. This chapter explains how to expose pure REST (Representational State Transfer) endpoints of the service that could be consumed by any client which wishes to use REST services. It also explains the implementation of Entity Framework in conjunction with Repository Pattern and Unit of Work also focuses on how to create a generic repository for all the entities that may come up as the application expands, in short it should be quite scalable and extensible. The second chapter in the book talks about loosely coupled architecture. It throws some light on how we can achieve a loosely coupled architecture in Asp.Net WebAPI’s using UnityContainer and Bootstrapper and explaining Dependency injection. The third chapter is about overcoming the flaws of UnityContainer. It explains how we can leverage MEF(Managed Extensibility Framework) to resolve the dependencies at runtime using IOC(Inversion of Control). Unlike other web services, Asp.net WebAPI supports attribute-based routeing techniques.The fourth chapter of the book explains how we can get multiple endpoints of a WebAPI using Attribute Routing and also overcome of the traditional shortcomings of REST based services. Security is always a concern in Enterprise level applications, Chapter 5 of the book explains how one can implement a custom token based authentication technique to make the API’s more secure. Sixth chapter of the book will explain the implementation of a centralised approach to logging and exception handling with the help of Action Filters and Exception filters. It teaches how to implement nLog in conjunction with Filters. Developing an enterprise level infrastructure without Unit tests is worth not developing it. Chapter 7 and 8 teaches how to leverage nUnit to accomplish this task of Unit Testing in WebAPIs. The chapter in detail describes how to write and execute unit tests for services and controllers. Chapter 9 of the series teaches the newly emerging concept of OData. It teaches on how one can request a service with custom needs and requirements, on how one can implement OData support to WebAPIs. Last but not the least is API hosting. In the last section of the book, the 10th chapter describes WebAPI hosting a self-host application.


About the Author

Akhil Mittal’s avatar Akhil Mittal

@AkhilMittal20

Akhil Mittal is two times Microsoft MVP (Most Valuable Professional), C# Corner MVP, Codeproject MVP, a blogger, author and likes to write/read technical articles. Akhil has an experience of around 12 years in developing, designing, architecting enterprises level applications primarily in Microsoft Technologies. Akhil enjoys working on technologies like MVC, Web API, Entity Framework, Angular, C#, and Blockchain. Akhil is an MCP (Microsoft Certified Professional) in Web Applications and Dot Net Framework. Visit Akhil Mittal’s personal blog CodeTeddy (https://codeteddy.com) for some good and informative articles.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Divingintoaspnetwebapi › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss