Just run run.sh, it would launch a docker with port 8088
Treat the investment as transactions, and sum up to return the state of all investments on a given date And with investment id, the specific investment could be modified
return
[
{
"company": "Meetly",
"quantity": 1000,
"cost": 1000
},
{
"company": "IMIM",
"quantity": 1000,
"cost": 1000
}
]
body
{
"company": "Meetly",
"quantity": 1000,
"cost": 1000,
"creation_date": (optional)default value would be current date
}
return
{
"id": 1
"company": "Meetly",
"quantity": 100,
"cost": 100,
"creation_date": "2018-12-04"
}
body
{
"company": "Meetly",
"quantity": 100,
"cost": 100,
"creation_date": "2018-11-11"
}
return
{
"id": 1
"company": "Meetly",
"quantity": 100,
"cost": 100,
"creation_date": "2018-12-04"
}