- configure your config.json
- import database.sql
- run the project
- build project
$ go build -o main
- Run app
$ ./main
- Run Test
$ go test -v ./...
$ docker-compose -f docker-compose.yml up -d
$ make run
-
Request :
- Method : GET
- Endpoint :
/account/{account_number}
- Header :
- Accept : Application/json
-
Response :
- Code : 200
{
"account_number" : "555001",
"customer_name" : "Bob Martin",
"balance" : 10000
}
- Request :
- Method : POST
- Endpoint
/account/{from_account_number}/transfer
- Header :
- Accept : Application/json
- Content-Type: application/json
- Body :
{
"to_account_number" : "555002",
"amount" : 100
}
- Response :
- Code : 201