Example ASP.Net Core Web API that conforms to the Problem Details spec
Uses Hellang.Middleware.ProblemDetails to implement this spec.
The sample app includes a Swagger UI. Here you can find an explaination of each endpoint: how an MVC action result or raw middleware response is converted to a ProblemDetails response.
- Browse to : https://hellang-problemdetails-demo.azurewebsites.net
- Try out the various endpoints using the swagger UI
cd src\ProblemDetailsDemo.Api
dotnet run
ordotnet run --launch-profile ProblemDetailsDemo.Api.Production
- Browse to: https://localhost:5001
- Try out the various endpoints using the swagger UI
- blog post demonstrating nuget library see:
- to enrich MS Application Insight request telementry with ProblemDetail data see: https://github.com/christianacca/ApplicationInsights.ProblemDetails
- Github deployments
- Azure app service
- Entra-ID tenant: 2de591fe-203b-42ed-9c29-15aaa387b978; christianacca.azure@gmail.com