cameaann / shareholders-app-backend

0 stars 0 forks source link

show transfer record in api #40

Closed Shahtaa closed 1 month ago

Shahtaa commented 1 month ago

retrieve and display the share transfer history from the database in the frontend

GET http://localhost:8080/api/transfer-history

Expected Response: [ { "id": 2, "fromShareholderId": 1, "toShareholderId": 2, "quantity": 100, "transferDate": "2024-09-09", "paymentDate": null, "transferTax": true, "pricePerShare": 50.0, "totalAmount": 5000.0, "additionalNotes": null }, { "id": 3, "fromShareholderId": 2, "toShareholderId": 1, "quantity": 50, "transferDate": "2024-09-09", "paymentDate": null, "transferTax": true, "pricePerShare": 50.0, "totalAmount": 2500.0, "additionalNotes": null }, { "id": 4, "fromShareholderId": 2, "toShareholderId": 1, "quantity": 50, "transferDate": "2024-09-09", "paymentDate": "2024-09-09", "transferTax": false, "pricePerShare": 50.0, "totalAmount": 2500.0, "additionalNotes": "notes ok" } ]