Sampath
Sampath

Reputation: 65870

Test complex WebApi method by using Fiddler or what ever extension

Could you tell me how to test below mentioned complex webapi method by using fiddler or what ever extension ? Thanks in advance.

WebApi method :

 [HttpPost]
 [POST("Sponsors/MyFulfilled/{pledgeId}/{amount}")]
 public string MyFulfilled(int pledgeId, decimal amount, MyConfirmation mp)
        {
           //code here

            return "thanks";
        }

MyConfirmation class :

 public class MyConfirmation
        {
            public string checkoutid { get; set; }
        }

UPDATE:

I have used like this.But it's not working :(

pledgeId=5&amount=88&mp={
"checkoutid":"12"
}

Upvotes: 0

Views: 107

Answers (1)

Julito Avellaneda
Julito Avellaneda

Reputation: 2385

try wth the following configuration in fiddler:

Fiddler Configuration

Web API Method

Regards,

Upvotes: 1

Related Questions