-
Notifications
You must be signed in to change notification settings - Fork 0
/
curl.txt
11 lines (6 loc) · 951 Bytes
/
curl.txt
1
2
3
4
5
6
7
8
9
10
11
curl -v -H "content-type: application/json" -d '{"code": "G3B.SI", "name": "STI ETF", "marketPlace": "SGX", "addedDate": "2021-06-24", "currency": "SGD", "investedAmount": 3000, "unitNumber": 1500, "marketUnitPrice": 2.00, "investedUnitPrice": 2.00}' http://localhost:8080/stocks
curl -v -H "content-type: application/json" -d '{"code": "G3B.SI", "name": "STI ETF", "marketPlace": "SGX", "addedDate": "2021-06-23", "currency": "SGD", "investedAmount": 3000, "unitNumber": 1000, "marketUnitPrice": 3.00, "investedUnitPrice": 3.00}' http://localhost:8080/stocks
curl -v http://localhost:8080/stock-histories/SGX/G3B.SI | jq .
curl -H "content-type: application/json" -d '{"currency": "SGD", "amount": 312.20}' http://localhost:8080/stocks/1/dividends
curl -H "content-type: application/json" -d '{"currency": "SGD", "amount": 12.20, "addedDate": "2018-05-20"}' http://localhost:8080/stocks/1/dividends
curl http://localhost:8080/stocks/1/dividends