User945338570 posted
Hi,
I have a code for calling web method in ajax, but want to test it in POSTMAN please tell me how to pass these parameters in POSTMAN.
$.ajax({
type: "POST",
url: "/RAFL/FetchDetails",
dataType: "json",
contentType: "application/json",
data: JSON.stringify({
postData: '{"custId":"SKC400","data":"DS/go10ZWvcKm10JGxYrvZ4+dGOpR6eB=="}',
RollNumber: $('#txtRollNo').val(),
sendEmail: $('#chkEmail').is(':checked'),
AttemptsLeft: AttemptsLeft,
consentNote: 'I accept.' }),
success: function (data) {
alert('success');
},
error: function (error) {
alert('failure');
}
});
Please help!