.NET client for Rick And Morty knowledge base api: https://rickandmortyapi.com/
Package Manager:
Install-Package RickAndMorty.Net.Api
.NET CLI
dotnet add package RickAndMorty.Net.ApiGet service from factory class:
var service = RickAndMortyApiFactory.Create();
var result = service.GetCharacter(5);Or register DI module (for now AutoFac only):
builder.RegisterModule(new RickAndMortyModule());To get service interface:
public class A
{
public A(IRickAndMortyService service)
{
}
}Service contains all methods availible from api https://rickandmortyapi.com/documentation