ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C#

دانلود کتاب تسلط بر Minimal API ها در ASP.NET Core: ساخت، آزمایش و نمونه سازی سریع API های وب با استفاده از دات نت و سی شارپ

Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C#

مشخصات کتاب

Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C#

ویرایش:  
نویسندگان: , ,   
سری:  
ISBN (شابک) : 1803237821, 9781803237824 
ناشر: Packt Publishing 
سال نشر: 2022 
تعداد صفحات: 240 
زبان: English 
فرمت فایل : EPUB (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 7 Mb 

قیمت کتاب (تومان) : 44,000



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 1


در صورت تبدیل فایل کتاب Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C# به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب تسلط بر Minimal API ها در ASP.NET Core: ساخت، آزمایش و نمونه سازی سریع API های وب با استفاده از دات نت و سی شارپ نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب تسلط بر Minimal API ها در ASP.NET Core: ساخت، آزمایش و نمونه سازی سریع API های وب با استفاده از دات نت و سی شارپ



درکی عملی از نحوه ساخت برنامه‌های ASP.NET Core سبک‌وزن و نوشتن APIهای تمیزتر، قابل آزمایش و امن‌تر با NET 6 و Minimal API بدست آورید

ویژگی های کلیدی

  • کاوش دستورالعمل های واضح و دقیق برای طراحی و توسعه API برای برنامه های ASP.NET Core
  • نکات متخصص، ترفندها و بهترین روش‌ها برای ساخت APIهای کارآمد را کشف کنید
  • روش‌های توسعه API وب اثبات شده را با استفاده از ویژگی‌ها و ابزار NET 6

توضیحات کتاب

ویژگی Minimal APIs، معرفی شد در NET 6، پاسخی به پیچیدگی کد و افزایش وابستگی ها در ایجاد حتی ساده ترین APIها است. API های حداقلی توسعه API را با استفاده از نحو کد فشرده تسهیل می کنند و به شما کمک می کنند API های وب را به سرعت توسعه دهید.

این راهنمای عملی API های حداقلی را سرتاسر بررسی می کند و به شما کمک می کند از ویژگی های آن بهره ببرید. و مزایایی برای پروژه های ASP.NET Core شما. فصل‌های این کتاب به شما کمک می‌کند با نوشتن کد کمتر و نگهداری فایل‌های کمتر با استفاده از Minimal API، روند توسعه خود را سرعت بخشید. همچنین یاد خواهید گرفت که چگونه Swagger را برای اسناد API به همراه CORS فعال کنید و خطاهای برنامه را مدیریت کنید. این کتاب حتی ایده هایی را برای ساختار بهتر کد شما با استفاده از کتابخانه تزریق وابستگی در دات نت ترویج می کند. در نهایت، با بهبود عملکرد و محک زدن برنامه‌های خود آشنا خواهید شد.

در پایان این کتاب، می‌توانید به طور کامل از ویژگی‌های جدید در NET 6 استفاده کنید. برای توسعه API و بررسی اینکه چگونه API های حداقلی نسبت به توسعه API وب کلاسیک در ASP.NET Core تکامل یافته اند.

آنچه خواهید آموخت

  • ویژگی‌های جدید را در NET 6 برای ساختن APIهای سبک‌وزن بپذیرید
  • با نحوه بهینه‌سازی توسعه API با Minimal آشنا شوید. APIها در NET 6
  • بهترین شیوه‌ها برای دسترسی و استفاده از داده‌ها در APIهای حداقلی را کشف کنید
  • < li>آشنایی با نحوه اعتبارسنجی داده های ورودی به یک API و بازگرداندن پیام های خطا
  • آشنایی با تزریق وابستگی و ورود به سیستم شناسایی خطاها
  • از سیستم ترجمه در Minimal API برای ارائه پیام‌ها و خطاها به زبان‌های منطقه استفاده کنید

این کتاب برای چه کسی است

اگر یک توسعه دهنده دات نت موجود هستید که می خواهید API های سبک وزن را به سرعت و بدون پیچیدگی زیاد توسعه دهید، این کتاب برای تو است. اگر توسعه‌دهنده‌ای هستید که به تازگی با چارچوب ASP.NET Core شروع کرده‌اید، این کتاب به شما کمک می‌کند تا با استفاده از آخرین ویژگی‌های دات‌نت، توسعه API وب را یاد بگیرید. این کتاب دانش سطح متوسط ​​از برنامه نویسی سی شارپ، ویژوال استودیو، و مفاهیم REST API را در نظر گرفته است.

فهرست محتوا

  1. مقدمه ای بر API های حداقل
  2. کاوش در API های حداقل و مزایای آنها
  3. < li>کار با Minimal API
  4. تزریق وابستگی در پروژه Minimal API</ li>
  5. استفاده از گزارش برای شناسایی خطاها
  6. کاوش در اعتبارسنجی و نقشه برداری< /li>
  7. ادغام با لایه دسترسی به داده
  8. افزودن احراز هویت و مجوز
  9. اهرم جهانی سازی و بومی سازی
  10. ارزیابی و محک زدن عملکرد API های حداقل

توضیحاتی درمورد کتاب به خارجی

Get a practical understanding of how to build lightweight ASP.NET Core applications and write cleaner, testable, and secure APIs with .NET 6 and Minimal APIs

Key Features

  • Explore clear and detailed guidelines to design and develop APIs for ASP.NET Core apps
  • Discover expert tips, tricks, and best practices to build performant APIs
  • Implement proven web API development methodologies using .NET 6 features and tools

Book Description

The Minimal APIs feature, introduced in .NET 6, is the answer to code complexity and rising dependencies in creating even the simplest of APIs. Minimal APIs facilitate API development using compact code syntax and help you develop web APIs quickly.

This practical guide explores Minimal APIs end-to-end and helps you take advantage of its features and benefits for your ASP.NET Core projects. The chapters in this book will help you speed up your development process by writing less code and maintaining fewer files using Minimal APIs. You'll also learn how to enable Swagger for API documentation along with CORS and handle application errors. The book even promotes ideas to structure your code in a better way using the dependency injection library in .NET. Finally, you'll learn about performance and benchmarking improvements for your apps.

By the end of this book, you'll be able to fully leverage new features in .NET 6 for API development and explore how Minimal APIs are an evolution over classical web API development in ASP.NET Core.

What you will learn

  • Adopt new features in .NET 6 for building lightweight APIs
  • Understand how to optimize API development with Minimal APIs in .NET 6
  • Discover best practices for accessing and using data in Minimal APIs
  • Understand how to validate incoming data to an API and return error messages
  • Get familiar with dependency injection and logging for identifying errors
  • Leverage the translation system in Minimal APIs to provide messages and errors in regional languages

Who this book is for

If you are an existing .NET developer who wants to develop lightweight APIs quickly without much complexity, this book is for you. If you are a developer who is just getting started with the ASP.NET Core framework, this book will help you learn web API development using the latest .NET features. The book assumes intermediate-level knowledge of C# programming, Visual Studio, and REST API concepts.

Table of Contents

  1. Introduction to Minimal APIs
  2. Exploring Minimal APIs and Their Advantages
  3. Working with Minimal APIs
  4. Dependency Injection in a Minimal API Project
  5. Using Logging to Identify Errors
  6. Exploring Validation and Mapping
  7. Integration with the Data Access Layer
  8. Adding Authentication and Authorization
  9. Leveraging Globalization and Localization
  10. Evaluating and Benchmarking the Performance of Minimal APIs


فهرست مطالب

Cover
Title Page
Copyright and Credits
Dedication
Contributors
Table of Contents
Preface
Part 1: Introduction
Chapter 1: Introduction to Minimal APIs
	Technical requirements
	A brief history of the Microsoft Web API
	Creating a new minimal API project
		Creating the project with Visual Studio 2022
		Creating the project with Visual Studio Code
	Looking at the structure of the project
	Summary
Chapter 2: Exploring Minimal APIs and Their Advantages
	Technical requirements
	Routing
		Route handlers
		Route parameters
		Route constraints
	Parameter binding
		Special bindings
		Custom binding
	Exploring responses
	Controlling serialization
	Architecting a minimal API project
		Going forward
	Summary
Chapter 3: Working with Minimal APIs
	Technical requirements
	Exploring Swagger
		Swagger in the Visual Studio scaffold
		OpenAPI Generator
		Swagger in minimal APIs
	Enabling CORS
		CORS flow from an HTTP request
		Setting CORS with a policy
		Setting CORS with extensions
		Setting CORS with an annotation
	Working with global API settings
		Configuration in .NET 6
		Options pattern
		Configuration sources
	Error handling
		Traditional approach
		Problem Details and the IETF standard
	Summary
Part 2: What’s New in .NET 6?
Chapter 4: Dependency Injection in a Minimal API Project
	Technical requirements
	What is dependency injection?
		Understanding dependency injection lifetimes
	Implementing dependency injection in a minimal API project
	Summary
Chapter 5: Using Logging to Identify Errors
	Technical requirements
	Exploring logging in .NET
		Configuring logging
		Customizing log message
		Infrastructure logging
		Source generators
	Leveraging the logging framework
		Console log
		Creating a custom provider
		Application Insights
	Storing a structured log with Serilog
	Summary
Chapter 6: Exploring Validation and Mapping
	Technical requirements
	Handling validation
		Performing validation with data annotations
		Integrating FluentValidation
		Adding validation information to Swagger
	Mapping data to and from APIs
		Performing manual mapping
		Mapping with AutoMapper
	Summary
Chapter 7: Integration with the Data Access Layer
	Technical requirements
	Using Entity Framework
		Setting up the project
		Adding EF Core to the project
		Adding endpoints to the project
	Using Dapper
		Setting up the project
		Creating a repository pattern
		Using Dapper to query the database
		Adding a new entity in the database with Dapper
		Implementing the repository in the endpoints
	Summary
Part 3: Advanced Development and Microservices Concepts
Chapter 8: Adding Authentication and Authorization
	Technical requirements
	Introducing authentication and authorization
	Protecting a minimal API
		Generating a JWT bearer
		Validating a JWT bearer
		Adding JWT support to Swagger
		Testing authentication
	Handling authorization – roles and policies
		Handling role-based authorization
		Applying policy-based authorization
		Using default and fallback policies
	Summary
Chapter 9: Leveraging Globalization and Localization
	Technical requirements
	Introducing globalization and localization
	Localizing a minimal API application
		Adding globalization support to Swagger
	Using resource files
		Creating and working with resource files
		Formatting localized messages using resource files
	Integrating localization in validation frameworks
		Localizing validation messages with MiniValidation
		Localizing validation messages with FluentValidation
	Adding UTC support to a globalized minimal API
	Summary
Chapter 10: Evaluating and Benchmarking the Performance of Minimal APIs
	Technical requirements
	Improvements with minimal APIs
	Exploring performance with load tests
		Use cases
		Writing k6 tests
		Running a k6 performance test
	Benchmarking minimal APIs with BenchmarkDotNet
		Running BenchmarkDotNet
	Summary
Index
About Packt
Other Books You May Enjoy




نظرات کاربران