4
Answers

ASP.NET Rest Service code in C#

Photo of Sumith Asanka

Sumith Asanka

7y
187
1
Hi Guys 
 
I have Provided Postman Interface for API Request
 
Can anyone send me the C# code execute this
 
thanks
regards
sumith 

Attachment: API_Screen.rar

Answers (4)

0
Photo of Sumith Asanka
NA 18 348 7y
Hi Guys Yet i get Internal Server error 500, I have provided my C# code and postman request, Postman reguest work but C# code does not work, can any body helm me to sort out the issue in my code, here i have attached api providers document too here with
 
thanks
regards
sumith 
0
Photo of Sumith Asanka
NA 18 348 7y
Here i get 500 internal server error while running my code on 
 
WebResponse response = request.GetResponse();
 
here i have attached my code and  Help Postman Provided by api proivider 
 
Please somebody help me to come out from this i am stuck on this
 
 
thanks
regards
sumith 
 
0
Photo of Srikant Maruwada
NA 501 4.4k 7y
Hi,
 
You can refer below link for submitting the api request using Postman.
 
https://idratherbewriting.com/learnapidoc/docapis_postman.html
https://dzone.com/articles/how-to-use-postman-to-manage-and-execute-your-apis
 
 
0
Photo of Sagar  Pandurang Kap
NA 2.7k 7.6k 7y
Hi,
You can refer bwlow links :-
 
https://www.codeproject.com/Tips/497123/How-to-make-REST-requests-with-Csharp
https://www.codeproject.com/Questions/651995/Create-Csharp-Restful-Service-and-Consume-in-Cshar
https://stackoverflow.com/questions/9620278/how-do-i-make-calls-to-a-rest-api-using-c#
https://www.code-maze.com/different-ways-consume-restful-api-csharp/ 
 
HOpe it helps.