How to call secured request ?
JWT Call (Secured Request):
URL: http://example.com/Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/SecureApi
Note: You do not need to pass the method name in URL when using SecureApi method, as the method
name will be passed as a part of Pay load inside Secured Token.
Please refer to the example.html file included in the plug-in which has implemented the same using Java Script.
Request Parameters:
- You need to send the parameters in data as per the requirement of method, also you need to change the URL as shown in below figure then only you will get the Response.
Response:
{
"SecureApiResult":
"{
\"CustomerId\":1,
\"UserName\":\"admin@123.in\",
\"EmailId\":\"admin@yourstore.com\",
\"Message\":\"Login Success\",
\"IsValid\":true,
\"RememberMe\":false
}"
}