Skip to content
Snippets Groups Projects
Commit 2b05602a authored by Patrik Paško's avatar Patrik Paško
Browse files

generic basic http requests

parent 81d04700
No related branches found
No related tags found
No related merge requests found
......@@ -56,28 +56,24 @@ namespace SDK
/// <summary>
/// Generic GET request
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="T">Returns type of T</typeparam>
/// <param name="subUrl"></param>
/// <returns></returns>
public async Task<T> Get<T>(string subUrl)
{
var response = await GetRequest<T>(subUrl);
return response;
return await GetRequest<T>(subUrl);
}
/// <summary>
/// Generic POST request
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="T">Returns type of T</typeparam>
/// <param name="subUrl"></param>
/// <param name="body"></param>
/// <returns></returns>
public async Task<T> Post<T>(string subUrl, object body)
{
var response = await PostRequest<T>(subUrl, body);
return response;
return await PostRequest<T>(subUrl, body);
}
/// <summary>
......@@ -87,11 +83,9 @@ namespace SDK
/// <param name="subUrl"></param>
/// <param name="body"></param>
/// <returns></returns>
public async Task<T> Patch<T>(string subUrl, object body)
public async Task Patch(string subUrl, object body)
{
var response = await PatchRequest<T>(subUrl, body);
return response;
await PatchRequest(subUrl, body);
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment