ID | +Proprietário | +Data de Criação | +Valor | +
---|
Rota: POST /api/investment
Exemplo de requisição:
++curl -X POST http://localhost:8000/api/investment \ +-H "Content-Type: application/json" \ +-d '{"name": "John Doe", "value": 1000, "created_at": "2023-01-01"}' ++
Rota: GET /api/investments/listInvestments
Exemplo de requisição:
++curl -X GET "http://localhost:8000/api/investments/listInvestments?page=1&perPage=5" ++
Rota: GET /api/investment/{investmentId}
Exemplo de requisição:
++curl -X GET http://localhost:8000/api/investment/1 ++
Rota: PUT /api/investment/{investmentId}/withdraw
Exemplo de requisição:
++curl -X PUT http://localhost:8000/api/investment/1/withdraw ++