Sample API for financial transaction management written in Go on an implementation of hexagonal architecture.
Install dependency modules.
Format all files using go fmt
.
Build source files into an executable binary named bin
.
Execute all available tests.
Starts the server application locally on port 8080
.
Starts the server application on a Docker
image on port 8080
.
Responds with status code 200
if the server is running.
Creates an account with the provided attributes.
{
"document_number": "12345678900"
}
{
"account_id": "1",
"document_number": "12345678900"
}
Searches for an account with the provided :accountId
.
{
"account_id": 1,
"document_number": "12345678900"
}
Creates a transaction with the provided attributes.
{
"account_id": 1,
"operation_type_id": 4,
"amount": 123.45
}
{
"transaction_id": 1,
"account_id": 1,
"operation_type_id": 4,
"amount": 123.45,
"event_date": "2020-01-05T09:34:18.5893223"
}