This pull request includes several changes to improve the handling of exceptions and API references in the WebApi project, as well as updates to ADR documentation statuses. The most important changes are grouped by theme below:
Documentation Updates:
Updated the status of ADR documents from "approved" to "accepted" to reflect the current decision status. (docs/adr/20241118-produce-useful-sql-server-exceptions.md, docs/adr/20241118-replace-automapper-with-manual-mapping.md, docs/adr/20241118-use-vogen-to-simplify-strongly-typed-ids.md) [1][2][3]
Exception Handling Improvements:
Added a new extension method AddCustomProblemDetails in CustomProblemDetailsExt.cs to customize problem details in HTTP responses. (src/WebApi/Extensions/CustomProblemDetailsExt.cs)
Updated Program.cs to use the new AddCustomProblemDetails method instead of the default AddProblemDetails method. (src/WebApi/Program.cs)
API Reference Mapping:
Added a new extension method MapCustomScalarApiReference in CustomScalarExt.cs to map Scalar API references with a default HTTP client. (src/WebApi/Extensions/CustomScalarExt.cs)
Updated Program.cs to use the new MapCustomScalarApiReference method instead of directly mapping Scalar API references. (src/WebApi/Program.cs)
> 1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)
https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/431
This pull request includes several changes to improve the handling of exceptions and API references in the
WebApi
project, as well as updates to ADR documentation statuses. The most important changes are grouped by theme below:Documentation Updates:
docs/adr/20241118-produce-useful-sql-server-exceptions.md
,docs/adr/20241118-replace-automapper-with-manual-mapping.md
,docs/adr/20241118-use-vogen-to-simplify-strongly-typed-ids.md
) [1] [2] [3]Exception Handling Improvements:
AddCustomProblemDetails
inCustomProblemDetailsExt.cs
to customize problem details in HTTP responses. (src/WebApi/Extensions/CustomProblemDetailsExt.cs
)Program.cs
to use the newAddCustomProblemDetails
method instead of the defaultAddProblemDetails
method. (src/WebApi/Program.cs
)API Reference Mapping:
MapCustomScalarApiReference
inCustomScalarExt.cs
to map Scalar API references with a default HTTP client. (src/WebApi/Extensions/CustomScalarExt.cs
)Program.cs
to use the newMapCustomScalarApiReference
method instead of directly mapping Scalar API references. (src/WebApi/Program.cs
)No