- toDo
- Database:
docker-compose up
will start the PostgreSQL DB make migrateup
will migrate the database structurego run main.go
will start the api
- base_url: http://localhost:3001
- 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"`
}