Reputation: 65870
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
Reputation: 2385
try wth the following configuration in fiddler:
Regards,
Upvotes: 1