go-sampleapi

command module
v0.0.0-...-bc0462b Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 9 Imported by: 0

README

go-sampleapi

Executar

Para rodar os containeres, utilize docker-compose up -d

Endpoints

POST /accounts (criação de uma conta) Request body:

{ 
    "document_number": "12345678900"
}

GET /accounts/:accountId (consulta de informações de uma conta) Response Body:

{
    "account_id": 1, 
    "document_number": "12345678900"
}

POST /transactions (criação de uma transação) Request Body:

{
    "account_id": 1, 
    "operation_type_id": 4, 
    "amount": 123.45
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
serializer

Jump to

Keyboard shortcuts

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