LerianStudio / midaz

Midaz, an open-source, cloud-native, immutable, multi-currency, multi-asset, Core Ledger Application for storing and tracking transactions.
Apache License 2.0
83 stars 4 forks source link

Create command products and added sub command create #247

Closed maxwelbm closed 1 week ago

maxwelbm commented 1 week ago

Context

Creating a command products through the CLI. Creating a command to create a product through the CLI.

Description of the command product

Description of the command create

Response api create product example

{
    "id": "0193271b-877f-7c98-a5a6-43b664d68982",
    "name": "Product Refined Cotton Chair",
    "ledgerId": "01932715-9f93-7432-90c3-4352bcfe464d",
    "organizationId": "01931b04-964a-7caa-a422-c29a95387c00",
    "status": {
        "code": "ACTIVE",
        "description": "Teste Product"
    },
    "createdAt": "2024-11-13T19:58:55.868976395Z",
    "updatedAt": "2024-11-13T19:58:55.868979258Z",
    "deletedAt": null,
    "metadata": {
        "bitcoinn": "3g9ofZcD7KRWL44BWdNa3PyM4PfzgqDG5P",
        "boolean": true,
        "chave": "metadata_chave",
        "double": 10.5,
        "int": 1
    }
}