@ponndinesh wrote:
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 : POSTExpected 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\nInternal Server Error\n\nI would like to know if I am making any mistake. Kindly help me here.
Posts: 2
Participants: 1