Using ConsumeAPI.Simple nuget
The nuget package ConsumeAPI.Simple is designed to help consume a rest API created with NetCore.Simple. It mainly provides helper classes that validates errors.
ConsumedResult class: This is a wrapper class for HttpResponseMessage. It uses a HttpResponseMessage, verifies for a 400 error, and stores the list of errors or output data accordingly
if (consumedResult.StatusCode == HttpStatusCode.OK)
var errors = consumedResult.Errors;
else
var value = consumedResult.Data;
Consume class: This is a wrapper class for HttpClient class. It can run the common http functions and return a ConsumedResult object.