- Golang;
- Docker;
- PostgreSQL
make dev-up
make dev-down
The server will be listening on localhost:8080.
Demo: http://localhost:8080/docs/v1/swagger/index.html
{
"name": "gabriel gabriel",
"secret": "45478494894",
"cpf": "57364376003
}
name
field must have at least 8 characterssecret
field must have at least 8 characterscpf
field must be a valid cpf
[
{
"id": "e91e8ac1-94f2-4dff-bcbf-e5941fc253ad",
"name": "hu3hu3hu3dsadasd",
"cpf": "02732567000",
"balance": 0,
"created_at": "2021-06-05T04:03:32.984852Z"
}
]
{
"id": "abce8b02-5f3a-4f2c-96a7-964e37d0dc08",
"balance": 0
}
{
"secret": "45478494894",
"cpf": "57364376003"
}
{
"token": "jwt token"
}
{
"account_destination_id": "abce8b02-5f3a-4f2c-96a7-964e37d0dc08",
"amount": 100,
}
[
{
"id": "e91e8ac1-94f2-4dff-bcbf-e5941fc253ad",
"account_destination_id": "abce8b02-5f3a-4f2c-96a7-964e37d0dc08",
"amount": 100,
"created_at": "2021-06-04T23:22:00.622329Z"
}
]
make test