ponndinesh
(Dinesh Ponnusami)
1
Hi,
Am trying to consume a rest service. Below is the screenshot and the details.
EndPoint : “http://api.mathjs.org/v4/”
Request : “”{““expr””: [““a = 1.2 * (2 + 4.5)””,““a / 2"”,”“5.08 cm in inch”“,”“sin(45 deg) ^ 2"”,““9 / 3 + 2i””,““b = [-1, 2; 3, 1]””,““det(b)””],““precision””: 14}“”
Method : POST
Expected Response :
{
“result”:[
“7.8”,
“3.9”,
“2 inch”,
“0.5”,
“3+2i”,
“[[-1,2],[3,1]]”,
“-7”
],
“error”:null
}
Actual Response;
\n\n\n\nError\n\n\n
Internal Server Error
\n\n
I would like to know if I am making any mistake. Kindly help me here.
1 Like
ponndinesh
(Dinesh Ponnusami)
2
Updating the screenshot of actual response.
ponndinesh
(Dinesh Ponnusami)
4
Hi @GBK,
Can you please explain me clearly. Am a beginner and trying to get into things. Please do correct my mistakes.
Regards,
Dinesh
ponndinesh
(Dinesh Ponnusami)
7
Hey @GBK,
That worked awesome. Thank you so much.
Regards,
Dinesh
GBK
(GBK)
8
cheers! pls mark reply as solution and this post will close in 3 days.
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.