- GO
- PostgreSQL
- Gorilla MUX router
- Docker
- Custom migrations with golang-migrate
- Basic Authentication
- Unit testing
- Docker and Docker Compose
- golang-migrate/migrate
$ docker-compose up --build
- Create merchant (/api/create/merchant)
- Get all merchants (/api/merchants or /api/merchants?PageNum=&PageSize=)
- Get merchant (/api/merchant/{id})
- Update merchant (/api/update/merchant/{id})
- Delete merchant (/api/delete/merchant/{id})
- Create team (/api/create/team)
- Get all teams (/api/teams or /api/teams?PageNum=&PageSize=)
- Get team (/api/team/{id})
- Update team (/api/update/team/{id})
- Delete team (/api/delete/team/{id})
- Get teams per merchant (/api/teams/merchant/{merchant_id} or /api/teams/merchant/{merchant_id?PageNum=&PageSize=}