A lightweight Go microservice.
Example configuration:
# API server settings.
API_SERVER_PORT=8080
# API server auth settings.
API_SERVER_AUTH_USERNAME="user"
API_SERVER_AUTH_PASSWORD="password"
# API server DB settings.
API_SERVER_DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"
Returns all transactions from the database.
Returns filtered by created_at
field transactions from the database.
Required query params:
created_at_start
- string in format "2006-01-02"created_at_end
- string in format "2006-01-02"
Add a new transaction to the database.
template-microservice-go
is free and open-source software licensed
under the Apache 2.0 License, created and supported by
Vic Shóstak with 🩵 for people and robots.