filmov
tv
How to do REST API Testing using REST SHARP and C# / Simple API Test using REST SHARP
Показать описание
How to do REST API Testing using REST SHARP and C# / Simple API Test using REST SHARP
Code:
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleAPI
{
internal class Program
{
static void Main(string[] args)
{
var request = new RestRequest("/api/users?page=2",Method.Get);
request.AddHeader("Accept", "application/json");
request.RequestFormat = DataFormat.Json;
RestResponse response = Client.Execute(request);
var content = response.Content;
Console.WriteLine(content);
Console.ReadKey(true);
}
}
}
Chapters:
0:00 - Introduction to rest api testing
1:07 - Creating a simple API Testing project with rest sharp (nuget pacakge)
3:00 - Program for testing rest api using rest sharp
8:10 - Execution of the program
8:46 - End Tags and subscription of the channel
Donation Section:
Now you can Donate us via Paypal or Google Pay
My second Channel:
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#restsharp
#apitesting
#specflow
Code:
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleAPI
{
internal class Program
{
static void Main(string[] args)
{
var request = new RestRequest("/api/users?page=2",Method.Get);
request.AddHeader("Accept", "application/json");
request.RequestFormat = DataFormat.Json;
RestResponse response = Client.Execute(request);
var content = response.Content;
Console.WriteLine(content);
Console.ReadKey(true);
}
}
}
Chapters:
0:00 - Introduction to rest api testing
1:07 - Creating a simple API Testing project with rest sharp (nuget pacakge)
3:00 - Program for testing rest api using rest sharp
8:10 - Execution of the program
8:46 - End Tags and subscription of the channel
Donation Section:
Now you can Donate us via Paypal or Google Pay
My second Channel:
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#restsharp
#apitesting
#specflow