Changed api to use investment request

THe frontend is using a different json model when sending the
request to the server. It's not an investment model, its an
investment request model.