Book description
Leverage ASP.Net Web API to build professional web services and create powerful applications.
About This Book
- Get a comprehensive analysis of the latest specification of ASP.NET Core and all the changes to the underlying platform that you need to know to make the most of the web API
- See an advanced coverage of ASP.NET Core Web API to create robust models for your data, create controllers, and handle routing and security
- This book is packed with key theoretical and practical concepts that can be instantly applied to build professional applications using API with Angular 4, Ionic, and React
Who This Book Is For
This book is for .Net developers who wants to Master ASP.NET Core (Web API) and have played around with previous ASP.NET Web API a little, but don’t have in-depth knowledge of it. You need to know Visual Studio and C#, and have some HTML, CSS, and JavaScript knowledge.
What You Will Learn
- Acquire conceptual and hands-on knowledge of ASP.NET Core (MVC & Web API)
- 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
- Consume your web API in front end application based on Angular 4, Bootstrap, and Ionic
- Implement and explore the current trends in service architecture
In Detail
Microsoft has unified their main web development platforms. This unification will help develop web applications using various pieces 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 the ASP.NET Core, then gradually moves on to implementing various HTTP routing strategies in the Web API. We then focus on the key components of building applications that employ the Web API, such as Kestrel, Middleware, Filters, Logging, Security, and Entity Framework.Readers will be introduced to take the TDD approach to write test cases along with the new Visual Studio 2017 live unit testing feature. They will also be introduced to integrate with the database using ORMs. Finally, we explore how the Web API can be consumed in a browser as well as by mobile applications by utilizing Angular 4, Ionic and ReactJS.
By the end of this book, you will be able to apply best practices to develop complex Web API, consume them in frontend applications and deploy these applications to a modern hosting infrastructure.
Style and approach
Using a hands-on approach, we cover both the conceptual as well as the technical aspects of the ASP.NET Core (Web API) framework.
Table of contents
- Preface
- Introduction to Microservices and Service-Oriented Architecture
- Understanding HTTP and REST
-
Anatomy of ASP.NET Core Web API
- A quick recap of the MVC framework
- Inception of Web APIs and their evolution
- Introduction to .NET Core
- Introducing ASP.NET Core
- Creating ASP.NET Core Project using Visual Studio IDE
- Creating ASP.NET Core web applications on Linux/macOS
- Creating ASP.NET Core web apps with Yeoman
- ASP.NET Core request processing
- Running the ASP.NET Core Web API project
- Further reading
- Summary
- Controllers, Actions, and Models
- Implementing Routing
- Middleware and Filters
- Perform Unit and Integration Testing
- Web API Security
- Integration with Database
- Error Handling, Tracing, and Logging
- Optimization and Performance
-
Hosting and Deployment
- Creating a demo ASP.NET Core Web API project
- Publishing ASP.NET Core Web API project
- Standalone web API
- Deployment strategy
- Deploying web API to IIS
- Deploying a web API to Azure App Service
- Publishing a web API to Windows virtual machine on Azure
- Publishing a web API to Docker
- Publishing a web API to EC2 on AWS
- Publishing a web API to Linux
-
Testing PacktContacts web API
- Test case - Accessing a web API without the header
- Test case - Accessing a web API with the header
- Test case - Adding a contact to web API
- Test case - Getting a contact from the web API
- Test case - Getting all contacts from the web API
- Test case - Editing a contact to the web API
- Test case - Deleting a contact from the web API
- Summary
- Modern Web Frontends
Product information
- Title: Mastering ASP.NET Web API
- Author(s):
- Release date: August 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786463951
You might also like
book
Pro ASP.NET Web API: HTTP Web Services in ASP.NET
Pro ASP.NET Web API shows you how to build flexible, extensible web services that run seamlessly …
book
Pro ASP.NET Web API Security: Securing ASP.NET Web API
ASP.NET Web API is a key part of ASP.NET MVC 4 and the platform of choice …
book
Expert ASP.NET Web API 2 for MVC Developers
Web API 2 is the latest evolution of Microsoft's web services toolkit, which allows the creation …
book
Building Web APIs with ASP.NET Core
Build fully-featured APIs with ASP.NET Core! This all-practical guide is written like a real development project, …