Open kolesroma opened 1 year ago
send a POST request to localhost:8080/v1/results with body
[
{"emotionId": 1, "value":5},
{"emotionId": 2, "value":4},
{"emotionId": 3, "value":3},
{"emotionId": 1, "value":3}
]
you should get a parsed result: key - emotion id value - sum of values in your post request
[
"1": 8,
"2": 4,
"3": 3,
]
Hi, @svitlana-p please take into consideration
Post request on /v1/results with body
[{emotionId:1, value:5}, {emotionId:2, value:5}, {emotionId:3, value:5}]
should parse data and return a json result. It has to be a Map of emotions