.NET client for Rick And Morty knowledge base api: https://rickandmortyapi.com/
https://www.nuget.org/packages/RickAndMorty.Net.Api/
Package Manager:
Install-Package RickAndMorty.Net.Api
.NET CLI
dotnet add package RickAndMorty.Net.Api
Get 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