Skip to content

Common implementation of RestEase-based REST clients.

License

Notifications You must be signed in to change notification settings

syncromatics/Syncromatics.Clients.RestEase

Repository files navigation

Syncromatics.Clients.RestEase

Common implementation of RestEase-based REST clients.

Quickstart

Add Syncromatics.Clients.RestEase package to your project:

dotnet add package Syncromatics.Clients.RestEase

Then use it to instantiate a REST client

var client = typeof(IMyRestEaseApi).GetRestClient("https://example.com");
try
{
    return await client.GetThingAsync();
}
catch (ClientException<ProblemDetails> clientExceptionWithProblemDetails)
{
    Console.Error.WriteLine(clientExceptionWithProblemDetails.Error.Title);
}
catch (ClientException clientException)
{
    Console.Error.WriteLine($"{clientException.StatusCode}: {clientException.Message}}");
}

Building

Travis NuGet NuGet Pre Release

This project is class library built with .NET Core. To build:

dotnet build

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

GMV Syncromatics Engineering logo GMV Syncromatics Engineering

license GitHub contributors

This software is made available by GMV Syncromatics Engineering under the MIT license.

About

Common implementation of RestEase-based REST clients.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages