Index

As this ebook edition doesn't have fixed pagination, the page numbers below are hyperlinked for reference only, based on the printed edition of this book.

Symbols

.NET 6

configuration in 59-62

Priority key, in appsettings files 62, 63

.NET Core 58

.NET Foundation

about 123

URL 123

A

ApiController attribute 120

application

configuring, in Azure App Service 69

configuring, in Docker 70-72

application programming interface (API)

about 38

data, mapping from 129-131

data, mapping to 129

Apply method 49

appsettings files

Priority key 62, 63

array

inserting 70

ASP.NET

logger, exploring 93-95

ASP.NET Core authentication

reference link 154

ASP.NET Core authorization

reference link 154

ASP.NET Core Identity 157

ASP.NET Core templates 93

authentication 154

authorization

about 154

handling 165

AutoMapper

about 132

mapping with 132-134

references 132

Azure Application Insights

about 111

registering 111

with standard log provider 113

Azure App Service

application, configuring 69

B

bearer authentication scheme 155

bearer tokens 155

BenchmarkDotNet

running 211-214

used, for benchmarking minimal APIs 210, 211

C

claims 158

Console log, logging framework 103-106

Console provider 94

cross-origin resource sharing (CORS)

custom policies, configuring 57

default policy, configuring 56

enabling 50, 51

flow, from HTTP request 52-55

setting, with annotation 58

setting, with extensions 58

setting, with policy 55, 56

custom attributes

reference link 123

custom binding

about 23-25

reference link 23

custom provider

creating 106-111

D

Dapper

about 143

repository, implementing in endpoints 149

repository pattern, creating 144-146

setting up, with SQL Server LocalDB 143

used, for adding new entity in database 148

using 143

using, to implement database query 146, 147

data

mapping, from APIs 129-131

mapping, to APIs 129-131

data annotations

about 120, 186

used, for performing validation 121-123

data transformation object (DTO) 130

data validation 119

Debug provider 94

default policies

using 172, 173

dependency injection (DI)

about 84-86

implementing, in Minimal API project 88-91

lifetimes 87

Developer Exception Page 73

Docker

application, configuring 70-72

E

endpoints 16

Entity Framework Core (EF Core) 136

Entity Framework (EF)

about 136

EF Core, adding 137

endpoints, adding 138-142

project, setting up 136, 137

using 136

error handling

about 73

IETF standard 75-78

Problem Details 75-78

traditional approach 73-75

EventLog 94

EventSource 94

F

fallback policies

using 172, 173

FluentValidation

about 123

integrating 123-126

references 123

used, for localizing validation messages 189-191

G

global API settings

configuring, in .NET 6 59-62

options pattern 63, 64

sources, configuring 68

working with 58

globalization

about 175, 176

support, adding to Swagger 179-182

globalized minimal API

UTC support, adding 191-194

GO client 40

H

Hash-Based Message Authentication Code (HMAC) 158

HTTP request

CORS flow, from 52-55

I

IETF standard 75-78

Internet Information Services (IIS) 99

IOperationFilter interface 49

IOptions

about 66-68

validation, using 68

J

JMeter 40

JSON schemas 128

JSON Web Token (JWT)

about 154

reference link 154

K

K6

about 40

performance test, running 203-210

tests, writing 202, 203

L

localization

about 175, 176

integrating, in validation frameworks 186

localized messages

formatting, with resource files (.resx) 185, 186

Log4net 104

logger, ASP.NET

exploring 93-95

logging framework

about 94

Application Insights 111-113

configurations 96-98

Console log 103-106

custom provider, creating 106-111

infrastructure 99, 100

leveraging 103

source generators 100-103

logging scenarios 94

log levels 94, 95

M

manual mapping

performing 131

mapping

about 129

need for 129

with AutoMapper 132-134

MicroElements.Swashbuckle.FluentValidation

reference link 128

Microsoft Web API

history 5

minimal API application

globalization support, adding to Swagger 179-182

localizing 176-178

minimal API project

architecting 31-33

creating 6

creating, with Visual Studio 2022 6-8

creating, with Visual Studio Code 8, 9

dependency injection (DI), implementing 88-91

structure 9-13

minimal API, protecting

about 154-156

authentication, testing 164, 165

JWT bearer, generating 157-160

JWT bearer, validating 161, 162

JWT support, adding to Swagger 162-164

minimal APIs

about 94

benchmarking, with BenchmarkDotNet 210, 211

history 5

performance, exploring, with load tests 198

performance, improving 197

Swagger 41-43

versioning 43

minimal APIs, performance with load tests

k6 performance test, running 203-210

k6 tests, writing 202, 203

use cases 198-202

MiniValidation

about 121

reference link 121

used, for localizing validation messages 186-189

model validation 120

N

named options 64

NLog 104

NuGet package 39

nullable reference types 22, 121

O

object

inserting 69

Object-Relational Mapper (ORM) 143

Open API Generator 40

OpenTelemetry

about 99

URL 99

operation filter 47-50, 179

options pattern

about 63, 64

interfaces 65, 66

IOptions 66-68

validation 67, 68

P

parameter binding

about 20

sources 21

working 20-22

policies 165, 168

policy-based authentication

reference link 173

policy-based authorization

handling 168-172

policy requirements 169

Problem Details 75-78

R

reflection

about 121

reference link 35

using 33, 34

resource files (.resx)

creating 182-185

used, for formatting localized messages 185, 186

using 182

working with 182-185

responses

exploring 26-28

role-based authorization

handling 165-168

roles 165

route constraints

about 19

reference link 19

route handlers 17

route parameters 18

routing

about 16

reference link 16

S

same-origin policy 50

serialization

controlling 29-31

Serilog

about 104, 113

structured log, storing with 113-116

SHA256 hash function

reference link 158

single-page applications (SPAs) 50

sinks 113

source generators 100-103

special bindings 22

SQL Server LocalDB

used, for setting up Dapper 143

structured log

storing, with Serilog 113-116

Swagger

exploring 38

features 44-47

globalization support, adding 179-182

in minimal APIs 41-43

in Visual Studio scaffold 38-40

Open API Generator 40

OperationFilter 47-50

validation information, adding to 127-129

System.Text.Json namespace

reference link 29

T

TimeOnly data type

reference link 170

U

UTC support

adding, to globalized minimal API 191-194

V

validation

handling 119-121

performing, with data annotations 121-123

validation attributes

reference link 123

validation frameworks

localization, integrating 186

validation information

adding, to Swagger 127-129

validation messages

localizing, with FluentValidation 189-191

localizing, with MiniValidation 186-189

versioning

in minimal APIs 43

Visual Studio 2022

minimal API project, creating with 6-8

Visual Studio Code

minimal API project, creating with 8, 9

Visual Studio scaffold

Swagger 38-40

W

W3C log 99

WebApplication 93

WebApplicationBuilder 93

Windows Communication Foundation (WCF) 5

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset