Fidelity Investments interview question

Create a REST API which takes in a list of JSON objects and returns the summary.input.