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