Open mark-pro opened 1 year ago
The idea is to treat Refit's IApiResponse as a monad or monadic computation and provide conversions from IApiResponse to LanguageExt monadic types.
app.MapGet( "/{input}", (MyRefitClient client, Input input) => client.GetSomething() .Map(body => /*do something with body*/ body) .ToResult() ).AddValidationFilter<Input>();
The idea is to treat Refit's IApiResponse as a monad or monadic computation and provide conversions from IApiResponse to LanguageExt monadic types.