Open
Description
You can add routes in the API that perform any maths operation - from simple multiplication, to even calculating matrix dot products.
The request must be a JSON of the following format :
{
data : {
param1: <value>,
...
param<n>: <value>
}
}
The response must a JSON of the following format:
{
result: <value>,
meta: {
<any relevant meta data here>
}
}
Make sure to add relevant unit tests .
Comment below with the maths operation you will be taking up to avoid clashes with other developers. :)