stone-test

command module
v0.0.0-...-6853f2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 4 Imported by: 0

README

BASIC BANKING TRANSACTION IN GO

This project is an API to simulate banking transactions in Golang.

Functionalities

POST /accounts => Create a new account with $1000,00 on balance

GET /accounts => Retrieve all accounts

GET /accounts/:id => Retrieve a specific account

GET /accounts/:id/balance => Retrieve the balance of an account

POST /transfers => Make a transaction to one logged in account to another account

GET /transfers => Retrieve all transactions of the logged in account

POST /login => Retrieve a JWT token to be used transactions api

POST /logout => Destroy the token to avoid attacks.

Pre requisites

  • Docker
  • Docker compose

Executing

docker-compose build 
docker-compose up -d

It will create container that run the necessary services.

The services will be running on port 8080

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL