Proxy server with REST API for handling fund transfer and stock transfer
- Endpoint for creating fund transfer
- Endpoint for creating stock transfer
First validate the request to another service (in this case dummyserver which is a REST API server). If the request valid then insert the request to database.
-
Fund Transfer Database
- accountNo varchar
- amount int
- status varchar (W: Request(default), X: Executed, C: Cancelled)
-
Stock Transfer Database
- accountNo varchar
- stock varchar
- amount int
- status varchar (W: Request(default), X: Executed, C: Cancelled)
-
Fund Transfer Validation Payload
- account_no string
- amount int
-
Stock Transfer Validation Payload
- account_no string
- stock string
- amount int
- Address: http://localhost:5000
- Fund Transfer Endpoint: /fund
- Fund Transfer Limit: 1000000
- Stock Transfer Endpoint: /stock
- Stock Transfer Limit: 1000
- Database: PostgreSQL
- REST API Framework: github.com/labstack/echo/v4
- SQL Library: github.com/jmoiron/sqlx
- Database Driver: github.com/lib/pq
- HTTP Client: github.com/go-resty/resty
- Architecture: Adaptation to Hexagonal/Clean Architecture