Result
Result copied to clipboard
A result abstraction that can be mapped to HTTP response codes if needed.
# Summary When returning an InvalidResult that is lacking an identifier (ie it has been instantiated with the constructor that takes just the ErrorMessage as a string), converting it into...
For example, if I sent back a conflict from my handler; `return Result.Conflict($"Contributor with name {request.NewName} already exists!");` How will I report that to the user at the API level?...
Extension methods exist that allow for a derived version of a FastEndpoints endpoint to be used to simply return a `Result`. It also extends the invalid request behavior by transforming...
# Pain When checking the result status (for example a service called from a minimal API). The code seems more verbose that it could be. For example: ```cs app .MapPost("/",...
For example this code from a devBetter.com member: ```csharp public abstract class EndpointBase : Endpoint where TRequest : notnull where TResponse : notnull where TMapper : class, IResponseMapper { public...
We already have support for Minimal API results so it would be awesome to see what work is needed to also support FastEndpoints like we do for Controllers/APIEndpoints. If any...
Should we have more options for including correlation ids? And if so, rather than having separate methods for all of them, would it make sense to bake it into a...
While using TranslateResultToActionResult to return responses in the form of ActionResults, there is no way for the caller to know the details of the pagination. The reason is because the...
Since the version 7.0.0, I get an exception Unable to cast object of type 'Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor' to type 'Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor'. If I rollback to 4.0.2, everything seems fine. I can see the...