Skip to content

Simple API for merchant and bank for Assignment MNC

Notifications You must be signed in to change notification settings

satriabagusi/simplebank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Bank API using GO

Logo

Installation

  1. Firstly, Clone or Download this Repo to your local directory
  2. You need GO (https://go.dev/doc/install)
  3. Open terminal from your IDE or direct open terminal from local directory

Run Locally

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

About

Simple API for merchant and bank for Assignment MNC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages