Please refer the previous article
https://dotnetbyudayrajakonda.blogspot.com/2023/10/creating-basic-aspnet-web-api.html
What is Fiddler?
The Fiddler is a free debugging proxy tool that is used for testing restful web services. We can use Fiddler to compose and execute different HTTP requests to our Web API and check the HTTP response.
Download the Fiddler software from the below URL
https://www.telerik.com/download/fiddler
click on the Fiddler.exe to open Fiddler
Next, click on Compose Tab as shown below
Now, enter the Web Api url which we created in the previous article and Hit Enter , you will see the response.
Request and Response Screen
Testing POST Request using Fiddler:
- Then choose the HTTP verb as POST
- Set the Content-Type as application/JSON.
- In the request body, provide the string value that you want to add to the string array.
- Click on the Execute button as shown below.
Testing PUT Request using Fiddler:
- Select the Compose Tab,
- Then choose the HTTP verb as PUT
- In the URL provide the index of the array element whose value you want to update.
- Set the Content-Type as application/json.
- In the Request body, provide the updated string value that you want to update into the string array.
- Finally, click on the Execute button as shown below.
Testing DELETE Request using Fiddler:
- Select the Compose Tab,
- Then choose the HTTP verb as DELETE
- In the URL provide the index of the array element whose value you want to update.
- Finally, click on the Execute button as shown below.
No comments:
Post a Comment
Thank you for visiting my blog