Provides
Http.WebApi— the Minimal API (IResult-returning) concrete implementation of the CoreExWebApi<TResult>execution helper — and its dedicatedWebApiInvoker.
CoreEx.AspNetCore.Http contains the Minimal API variant of the CoreEx Web API helper. Http.WebApi extends the abstract WebApi<IResult> base and implements CreateResult(WebApiResult<IResult>) to translate a WebApiResult into an ASP.NET Core IResult — either a typed Results<T> value or a ProblemDetails result.
It is registered via services.AddHttpWebApi() and injected into Minimal API endpoint delegates in the same way that Mvc.WebApi is injected into MVC controllers. The HTTP verb methods (GetAsync, PostAsync, PutAsync, PatchAsync, DeleteAsync) are inherited from WebApi<IResult> unchanged; only the final IResult creation differs.
AspNetCoreHttpExtensions provides IResult-oriented extension helpers used by the Minimal API endpoint pipeline.
- ⚡ Minimal API integration: Returns
IResulttypes compatible withResults<T>andTypedResults, enabling full Minimal API support with OpenAPI inference. - 📄 ProblemDetails responses:
CreateResultmaps everyIExtendedException(and unhandled exception whenConvertUnhandledExceptionsToProblemDetailsis set) to aTypedResults.Problem(ProblemDetails)result. - 🔗 Shared execution pipeline: All verb logic (deserialization, ETag, paging,
Result<T>unwrapping) is inherited fromWebApi<IResult>— no duplication with the MVC variant. - 🔧 DI registration:
AddHttpWebApi(services, configure?)registersHttp.WebApias a scoped service with optional startup configuration action.
| Type | Description |
|---|---|
Http.WebApi |
Minimal API IResult-returning WebApi<IResult> implementation; maps WebApiResult<IResult> to TypedResults.Ok, TypedResults.Created, TypedResults.NoContent, or TypedResults.Problem. |
Http.WebApiInvoker |
WebApiInvoker<IResult> singleton used by Http.WebApi to wrap invocations with OpenTelemetry spans. |
AspNetCoreHttpExtensions |
IResult extension helpers for Minimal API result construction used internally by Http.WebApi. |
CoreEx.AspNetCore.Abstractions-WebApi<IResult>base class providing all verb implementations;Http.WebApisupplies onlyCreateResult.CoreEx.AspNetCore.Mvc- Parallel MVC variant returningIActionResultinstead ofIResult.CoreEx.AspNetCore-AddHttpWebApi()DI extension is defined in the root package'sCoreExAspNetCoreExtensions.DependencyInjection.cs.