Categorygithub.com/GSabadini/golang-transactional-outbox-pattern
modulepackage
0.0.0-20240524145353-4097851d042d
Repository: https://github.com/gsabadini/golang-transactional-outbox-pattern.git
Documentation: pkg.go.dev

# README

Transactional Outbox Pattern

Description

  • Hello

Architecture

  • Hello

Example

Creating account

Request

curl -i --request POST 'http://localhost:8080/v1/accounts' \
--header 'Content-Type: application/json' \
--data-raw '{
    "document": "07091058424"
}'

Response

{
    "id":1
}

Creating transaction

Request

curl -i --request POST 'http://localhost:8080/v1/transactions' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account_id": 1,
    "currency": "BRL",
    "operation_type": "CREDIT",
    "amount": 150.00
}'

Response

{
    "id":1
}

Author

License

Copyright © 2024 GSabadini. This project is MIT licensed.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author