- Clone this repository
- Copy file .env.example to .env
- Run using command below
docker-compose up
go test -v
For docs access on this link localhost:port/api/v1/docs/index.html
Method | Route | Header | Body |
---|---|---|---|
POST | /daftar | {"name": "Dian", "phone_number": "0821", "pin": "1234" } |
|
POST | /tabung | Basic Auth, using account_no dan pin | {"amount": 50000} |
POST | /tarik | Basic Auth, using account_no dan pin | {"amount": 50000} |
- Note:
- Basic AUth can generated online using this link https://www.debugbear.com/basic-auth-header-generator,
- fil username using account_no, and password using pin.
- result generated copy to header. Ecample -> Authorization: Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM=