Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On RESTful Web Services with ASP.NET Core 3

You're reading from   Hands-On RESTful Web Services with ASP.NET Core 3 Design production-ready, testable, and flexible RESTful APIs for web applications and microservices

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781789537611
Length 510 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Samuele Resca Samuele Resca
Author Profile Icon Samuele Resca
Samuele Resca
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Section 1: Getting Started FREE CHAPTER
2. REST 101 and Getting Started with ASP.NET Core 3. Section 2: Overview of ASP.NET Core
4. Overview of ASP.NET Core 5. Working with the Middleware Pipeline 6. Dependency Injection System 7. Web Service Stack in ASP.NET Core 8. Routing System 9. Filter Pipeline 10. Section 3: Building a Real-World RESTful API
11. Building the Data Access Layer 12. Implementing the Domain Logic 13. Implementing the RESTful HTTP Layer 14. Advanced Concepts of Building an API 15. The Containerization of Services 16. Service Ecosystem Patterns 17. Implementing Worker Services Using .NET Core 18. Securing Your Service 19. Section 4: Advanced Concepts for Building Services
20. Caching Web Service Responses 21. Logging and Health Checking 22. Deploying Services on Azure 23. Documenting Your API Using Swagger 24. Testing Services Using Postman 25. Other Books You May Enjoy

What this book covers

Chapter 1, REST 101 and Getting Started with ASP.NET Core, explains some fundamentals of RESTful APIs and how they can be useful when building an application.

Chapter 2, Overview of ASP.NET Core, shows the essential components of the .csproj file. It illustrates the main components of a project: the Startup class and the Program.cs file.

Chapter 3, Working with the Middleware Pipeline, explores middlewares, which are a central part of ASP.NET Core. This chapter walks you through the middleware pipeline and explains how it can handle requests and initialize different services based on them. Furthermore, the chapter covers the different out-of-the-box middlewares provided by ASP.NET Core and how to build a custom middleware.

Chapter 4, Dependency Injection System, introduces you to dependency injection principles and to the concepts behind dependency injection. It shows you how to use dependency injection to initialize components and options inside your application and how to use them inside your controllers.

Chapter 5, Web Service Stack in ASP.NET Core, describes how to create a web service stack in ASP.NET Core. It goes into depth on concerns such as controllers, action methods, action results, model binding, and model validation.

Chapter 6, Routing System, delves into the routing system, which handles HTTP requests. The chapter shows you how to deal with the default routing system of ASP.NET Core.

Chapter 7, Filter Pipeline, covers another essential topic in ASP.NET Core: filters. Filters are a vital component for achieving cross-cutting implementations in our services. The chapter introduces them; it shows how to implement our filters and explores some concrete use cases.

Chapter 8, Building the Data Access Layer, introduces the domain model part. The main topics are related to how to build the domain model and how to access data using object-relational mapping (ORM).

Chapter 9, Implementing the Domain Logic, describes the mediator pattern approach to keeping logic isolated from other application components. The mediator pattern is one way to handle and manage our logic.

Chapter 10, Implementing the RESTful HTTP Layer, explains how to retrieve data from the mediator and use it inside our controllers.

Chapter 11, Advanced Concepts of Building the API, presents some advanced concepts around building APIs in ASP.NET Core. The chapter will cover topics around the soft deletion of resources, and it introduces some good practices for working with asynchronous code in ASP.NET Core.

Chapter 12, The Containerization of Services, gives you a quick introduction to containers and how they can be useful when running your application locally in a sandboxed environment.

Chapter 13, Service Ecosystem Patterns, focuses on the patterns involved when multiple services are part of the same ecosystem.

Chapter 14, Implementing Worker Services Using .NET Core, is dedicated to the new worker template of .NET Core. Workers provide a way to implement small services or daemons that can be used to perform background operations.

Chapter 15, Securing Your Service, talks about securing a service or an API. Besides that, it covers concepts including Secure Sockets Layer (SSL), Cross-Origin Resource Sharing (CORS), and authentication.

Chapter 16, Caching Web Service Responses, covers all the caching choices provided by ASP.NET Core.

Chapter 17, Logging, Monitoring, and Health Checking, shows some best practices for logging and monitoring your application.

Chapter 18, Deploying Services on Azure, shows some examples of how to host a web service in the cloud.

Chapter 19, Documenting Your API Using Swagger, introduces you to the OpenAPI standard and how to implement it in an ASP.NET Core application.

Chapter 20, Testing Services Using Postman, shows how to use Postman to test a web service.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image