Table of Contents

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 IApiRequestStrategy

the IApiRequestStrategy required for the endpoint

requestData TData

the data that is conventionally passed through to GenerateHttpRequestMessage<TData>(TData?)

Returns

Task<string>

Type Parameters

TData