30 lines
835 B
C#
30 lines
835 B
C#
namespace LaaProduction.Http.Interfaces
|
|
{
|
|
public interface IHttpClient
|
|
{
|
|
HttpResponse<T> DELETE<T>(string pathAndQuery);
|
|
|
|
HttpResponse<T> DELETE<T>(string pathAndQuery, string bearer);
|
|
|
|
HttpResponse<T> GET<T>(string pathAndQuery);
|
|
|
|
HttpResponse<T> GET<T>(string pathAndQuery, string bearer);
|
|
|
|
HttpResponse<T> POST<T>(string route);
|
|
|
|
HttpResponse<T> POST<T>(string route, object body);
|
|
|
|
HttpResponse<T> POST<T>(string route, string bearer);
|
|
|
|
HttpResponse<T> POST<T>(string route, string bearer, object body);
|
|
|
|
HttpResponse<T> PUT<T>(string route);
|
|
|
|
HttpResponse<T> PUT<T>(string route, object body);
|
|
|
|
HttpResponse<T> PUT<T>(string route, string bearer);
|
|
|
|
HttpResponse<T> PUT<T>(string route, string bearer, object body);
|
|
}
|
|
}
|