Interface IApiEndpoint
- Namespace
- Songhay.Abstractions
- Assembly
- SonghayCore.dll
Defines how an API should be accessed.
public interface IApiEndpoint : ITaggedInstance
- Inherited Members
- Extension Methods
Methods
DownloadStringAsync<TData>(IApiRequestStrategy?, TData?)
Download into a string from the API endpoint
Task<string> DownloadStringAsync<TData>(IApiRequestStrategy? requestStrategy, TData? requestData)
Parameters
requestStrategy
IApiRequestStrategythe IApiRequestStrategy required for the endpoint
requestData
TDatathe data that is conventionally passed through to GenerateHttpRequestMessage<TData>(TData?)
Returns
Type Parameters
TData