Get up to speed with the ASP.NET Web API to build professional web services and create powerful applications
Key Features
- Explore the latest specifications of ASP.NET Core and the different changes applied to the platform
- Gain comprehensive insights into the ASP.NET Core Web API to create robust models for your data, develop controllers, and handle routing and security
- Focus on key theoretical and practical concepts that you can apply to build professional applications using an API with Angular 4, Ionic, and React
Book Description
Microsoft has unified their main web development platforms and this unification will help you effectively develop web applications using various aspects of the ASP.NET platform that can be deployed on both Windows and Linux. With ASP.NET Core (Web API), it will become easier than ever to build secure HTTP services that can be used from any client.
Mastering ASP.NET Web API starts with the building blocks of ASP.NET Core, before guiding you through implementing various HTTP routing strategies in the Web API. You will then focus on the key components of building applications that employ the Web API, such as Kestrel, middleware, filters, logging, security, and the Entity Framework. Next, you'll understand how to apply the test-driven development (TDD) approach to write test cases along with the new Visual Studio 2017 live unit testing feature. Toward the concluding chapters, you'll learn to integrate with the database using object-relational mapping (ORM). Finally, you'll explore how the Web API can be consumed by a browser as well as by mobile applications using Angular 4, Ionic and ReactJS.
By the end of this book, you will have gained the expertise you need to apply best practices for developing complex Web APIs, consuming them in frontend applications and deploying these applications to a modern hosting infrastructure.
What you will learn
- Learn about HTTP methods, the structure of HTTP content, internet media types, and how servers respond to HTTP requests and their associated HTTP codes
- Explore middleware, filters, routing, and unit testing
- Optimize Web API implementations
- Develop a secure Web API interface
- Deploy Web API projects to various platforms
- Get to grips with how your web API can be consumed by frontend applications with Angular 4, Bootstrap, and Ionic
- Discover and implement current trends in service architecture
Who this book is for
This book is for .NET developers who want to master ASP.NET Core (Web API) and have some prior knowledge of the ASP.NET Web API. Knowledge of Visual Studio and C#, and some understanding of HTML, CSS, and JavaScript are required.
Table of Contents
- Introduction to Micro-services & Service Oriented Architecture
- Understanding HTTP & REST
- Anatomy of ASPNET Core WebApi
- Controllers Actions and Models
- Implementing Routing
- Middleware & Filters
- Testing
- WebApi Security
- Integration with Database
- Error Handling, Tracing & Logging
- Optimization & Performance
- Hosting & Deployment
- Modern Web Frontends
Mithun Pattankar, who hails from Kalaburgi and lives in Bangalore, India, works with the leading MNC as a consultant. He has been developing .NET-based applications for over 12 years now. He has an industry-wide experience in building Desktop Apps (WPF), Web Apps (ASP.NET and client-side frameworks), and Hybrid Mobile apps (Ionic). He is involved in all aspects of application development, and mentors his junior team members. He has been actively working on building ASP.NET Web APIs for different frontends and conducts technical training as well. Mithun believes in eating sattvic food for healthy living and loves spending time doing socio-spiritual activities. He occasionally blogs on mithunvp.com and can be reached on Twitter at @mithunpattankar.
Malendra Hurbuns is from South Africa, and lives in New Zealand, working for an Australian Company as a senior software developer. He has been developing in .NET for over 15 years. He mentors other developers and is involved in all aspects of development. He loves writing simple code that has a high quality. He is one of the pioneers in web API in his role, and he has implemented many live systems using ASP.NET Web APIs. TDD is also a topic close to his heart. He has worked in the accounting, banking, and simulation industries, which has provided him with a wealth of experience. He is a keen cyclist and swimmer.