Json response must be coherent throughout every math operation.
We should decide on a single format for all so the client can expect the same data format
without knowing which operation it asked.
We could do it like this:
{
message: "<relevant message - probably identifying the operation>",
operation: "<either success | failed>",
operators: [
"operator1",
"operator2"
],
result: ""
}
Json response must be coherent throughout every math operation.
We should decide on a single format for all so the client can expect the same data format
without knowing which operation it asked.
We could do it like this:
{
message: "<relevant message - probably identifying the operation>",
operation: "<either success | failed>",
operators: [
"operator1",
"operator2"
],
result: ""
}