investments API Request endpoints

Route Name Description Endpoint Request method
routes Get list of available API routes /api/v1/investments/routes GET
createInvestment Create a new investment /api/v1/investments/ POST
searchInvestments Search for investments by name, location, etc /api/v1/investments/search GET
getInvestment Get details of specified investment /api/v1/investments/ GET
listInvestments Fetch list of investments /api/v1/investments/ GET
investInInvestment Invest in an investment (agriculture, mortgage, real-estate, restaurant, etc) /api/v1/investments/:investmentId/invest POST
updateInvestment Update investment details /api/v1/investments/ PUT
deleteInvestment Delete investment from the database /api/v1/investments/ DELETE