Hands-on restful web services with asp.net core 3 : design production-ready, testable, and flexible restful apis for web applications and
RESTful Web Services with ASP.NET Core is a hands-on guide that will get you familiar with the ASP.NET Core ecosystem and help you in building scalable and maintainable web services with all the latest features. The book will prepare you with an advanced approach while building real-world applicatio...
Call Number: | Libro Electrónico |
---|---|
Main Author: | |
Format: | Electronic eBook |
Language: | Inglés |
Published: |
[Place of publication not identified] :
PACKT Publishing,
2019.
|
Subjects: | |
Online Access: | Texto completo |
Table of Contents:
- Cover
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Table of Contents
- Preface
- Section 1: Getting Started
- Chapter 1: REST 101 and Getting Started with ASP.NET Core
- REST
- The importance of being REST compliant
- REST requirements
- Uniform interface
- Manipulation of resources through representations
- Self-descriptive messages
- Hypermedia as the Engine of Application State
- Stateless
- Client-server separation
- Layered system
- Richardson maturity model
- Introducing ASP.NET Core
- The evolution of ASP.NET
- The new .NET ecosystem
- NET STANDARD
- Why use ASP.NET Core to build RESTful web services?
- Preparing your development environment
- NET Core CLI
- IDEs and development tools in ASP.NET Core
- Summary
- Section 2: Overview of ASP.NET Core
- Chapter 2: Overview of ASP.NET Core
- Setting up our .NET Core project
- Overview of .csproj
- The Program.cs file in detail
- Setting up an ASP.NET Core project
- The project structure
- The Program.cs and Startup.cs files
- Overview of controllers
- Summary
- Chapter 3: Working with the Middleware Pipeline
- Introducing middleware
- The middleware pipeline in practice
- HttpContext in ASP.NET Core
- Class-based middleware
- Conditional pipeline
- Understanding built-in middleware
- Summary
- Chapter 4: Dependency Injection System
- Dependency inversion principle
- Benefits of dependency injection
- Dependency injection in ASP.NET Core
- Registering services using the dependency injection container
- Registering services conditionally
- Constructor injection
- Action method injection
- Services life cycle
- Transient life cycle
- Scoped life cycle
- Singleton life cycle
- Life cycle madness
- Injecting services into middleware
- Summary
- Chapter 5: Web Service Stack in ASP.NET Core
- What is a controller?
- Identifying controllers
- Extending controllers
- The ApiController attribute
- Handling requests using controllers and actions
- Creating an in-memory repository
- Handling client requests
- Handling HTTP methods using actions
- Responding to requests
- CreateAt response
- Updating resources
- Partial updating
- Deleting resources
- Asynchronous processing and acceptance status
- Data transfer objects
- Implementing request models
- Implementing response models
- Implementing validation of requests
- Custom validation attributes
- Summary
- Chapter 6: Routing System
- Overview of the routing system
- Conventional routing
- Attribute routing
- Custom attribute routing
- Routing constraints
- Custom constraints
- Summary
- Chapter 7: Filter Pipeline
- Introduction to filters
- Concrete filter implementations
- Asynchronous filters
- The scope of filters
- The use of filters
- Life cycle and dependency injection
- Filter use cases
- Existing entity constraints
- Altering exceptions
- Summary