For start using this library please follow these steps:
Open the terminal and under your project directory, run the command
dotnet add package Innovabit.DotNet.Api.RestCountries
using Innovabit.DotNet.Api.RestCountries;
On your service collection, add the depndencies for the RestCountry api client.
services.AddCountriesApi();
namespace MyServiceNamespace;
public class CustomService : ICustomService
{
private readonly IRestCountriesApiClient _countriesApiClient;
public CustomService(IRestCountriesApiClient restCountriesApiClient)
{
_countriesApiClient = restCountriesApiClient;
}
}