GET and POST functioning

This commit is contained in:
2024-06-05 11:34:55 +02:00
parent 004e9c87f9
commit c6db3d426b
5 changed files with 140 additions and 37 deletions

View File

@ -1,9 +1,11 @@

namespace PostmanCloneLibrary
{
public interface IApiAccess
{
Task<string> CallApiAsync(string url, bool formaOutput, HttpAction action);
Task<string> CallApiAsync(string url, string content, HttpAction action = HttpAction.GET, bool formaOutput = true);
Task<string> CallApiAsync(string url, HttpContent? content = null, HttpAction action = HttpAction.GET, bool formaOutput = true);
bool IsValidUrl(string url);
}
}