From 542b894a7e45e7aae20b9fa42f6069fbc7882996 Mon Sep 17 00:00:00 2001 From: samantha Date: Fri, 27 Mar 2026 11:16:57 +0000 Subject: [PATCH] Update REST API --- REST-API.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/REST-API.md b/REST-API.md index 5168a07..2956592 100644 --- a/REST-API.md +++ b/REST-API.md @@ -82,9 +82,35 @@ Value | Meaning
curl -X POST http://localhost:8080/trade/list 
return:
 
-{
+[{
 "Symbol":"NOVOBc",
-"CurrencyCode":"DKK",\
+"CurrencyCode":"DKK"\
+"Shares":15,
+"Product":0,
+"Type":true,
+"Price":505,
+"Date":"2025-03-26T00:00:00Z"
+},{
+"Symbol":"NOVOBc",
+"CurrencyCode":"DKK",
+"Shares":15,
+"Product":0,
+"Type":true,
+"Price":505,
+"Date":"2025-03-26T00:00:00Z"
+}
+]
+
+ +

GET /positions/list

+

getting a list of trades in the db

+
curl -X POST http://localhost:8080/trade/list 
+
return:
+
+{
+
+"Symbol":"NOVOBc",
+"CurrencyCode":"DKK",
 "Shares":15,
 "Product":0,
 "Type":true,
@@ -94,3 +120,5 @@ Value | Meaning
 
+ +