Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 797 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 797 Bytes

Getting Started

For start using this library please follow these steps:

1. Install the library

Open the terminal and under your project directory, run the command

dotnet add package Innovabit.DotNet.Api.RestCountries

2. Import namespace

using Innovabit.DotNet.Api.RestCountries;

3. Register dependencies

On your service collection, add the depndencies for the RestCountry api client.

services.AddCountriesApi();

4. Add the dependency

namespace MyServiceNamespace;

public class CustomService : ICustomService
{
    private readonly IRestCountriesApiClient _countriesApiClient;

    public CustomService(IRestCountriesApiClient restCountriesApiClient)
    {
        _countriesApiClient = restCountriesApiClient;
    }
}