- in your web api project in startup class pass
ApiBaseUrl
andToken
builder.Services.AddBooksStoreClient(options => { var config = builder.Configuration; options.ApiBaseUrl = config["BooksStoreSettings:ApiBaseUrl"]; options.Token = config["BooksStoreSettings:Token"]; });
- use
IBooksStoreFacade
in your controller
esseedev / booksstoreclient Goto Github PK
View Code? Open in Web Editor NEWSmall lib with httpClient for imaginary bookStore