![gopherbadger-tag-do-not-edit](https://camo.githubusercontent.com/df865f872d2a3af69fc71c1c066d7316b5b9cfec165bb769ff1bb313fd1a95a2/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f4d656c6c6f546f6e696f2f6465736166696f676f)
- Database:
docker-compose up
will start the PostgreSQL DB
make migrateup
will migrate the database structure
go run main.go
will start the api
- POST
{{base_url}}/accounts/create
- Create one account in the database
{
Name string `json:"name"`
Cpf string `json:"cpf"`
Secret string `json:"secret"`
}
- GET
{{base_url}}/accounts/{accountID}
- Get one account by ID
- GET
{{base_url}}/accounts/all
- List all accounts
- GET
{{base_url}}/transfers/{accountID}
- List all transfer by account ID
- POST
{{base_url}}/transferTo
- Perform a transfer between two accounts (Login Required) (QueryParams: accountID_destination, amount)
- POST
{{base_url}}/accounts/login
- Authenticate the account and returns JWT token
{
Cpf string `json:"cpf"`
Secret string `json:"secret"`
}