- Firstly, Clone or Download this Repo to your local directory
- You need GO (https://go.dev/doc/install)
- Open terminal from your IDE or direct open terminal from local directory
Go to the project directory
cd simplebank
Run the Project from Terminal
go run cmd/main.go
**API Documentation: **
POST /api/v1/login
POST /api/v1/logout
POST /api/v1/transaction/create
**Data Example: **
{
"username": "john",
"password": "john123"
}
OR
{
"username": "doe",
"password": "doe123"
}
**Using Endpoint Transaction & Logout: **
Put your token and used as Bearer token
Example :
Bearer token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJ1c2VybmFtZSI6ImpvaG4iLCJlbWFpbCI6ImpvaG5AbWFpbC5jb20iLCJleHAiOjE2ODgxMzc5MjAsImlhdCI6MTY4ODEzMDcyMH0.3b39fFQ6D7SjrrjTZYE9mROm_qX1pYAhwcG0FGplSmc