Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagejs
POST /totvseai/standardmessage/v1/transactions?batchType=businessTransaction

{
    "items" : [
		{
            "header" : {
                "UUID" : "",
                "type" : "BusinessMessage",
                "subType" : "event|request",
                "transaction" : "customerVendor",
                "version" : "2.001",
                "sourceApplication": "",
                "productName" : "",
                "productVersion" : "",
                "generatedOn" : "",
                "deliveryType" : "async",
            },
            "content" : {
                "atributo1" : "",
                "atributo2" : "",
                ...
                "atributoN" : ""
            }
        },{
            "header" : {
                "UUID" : "",
                ...
                "transaction" : "item",
                "version" : "3.001",
                ...
                "deliveryType" : "sync" // Rejeitar toda a requisição e informar que só aceita assíncrono
            },
            "content" : {
                "atributo1" : "",
                "atributo2" : "",
                ...
                "atributoN" : ""
            }
        }
    ]
}

...

Bloco de código
languagejs
POST /totvseai/standardmessage/v1/transactions?batchType=simpleBatch

{        
    "header" : {

        "UUID" : "",

        "type" : "BusinessMessage",

        "subType" : "event|request",

        "transaction" : "customerVendor",

        "version" : "2.001",

        "sourceApplication": "",

        "productName" : "",

        "productVersion" : "",

        "generatedOn" : "",

        "deliveryType" : "async",

    },

    "content" : {

        "items" : [

            {

                "atributo1" : "valorA1",

                "atributo2" : "valorA2",

                ...

                "atributoN" : "valorAN"

            },

            {

                "atributo1" : "valorB1",

                "atributo2" : "valorB2",

                ...

                "atributoN" : "valorBN"

            }

        ]

    }

}

Submeter mensagens em lote - mesma transação e versão

...

Bloco de código
languagejs
POST /totvseai/standardmessage/v1/transactions/customervendor_1_000?batchType=simpleBatch|businessTransaction

{

    "items" : [

        {

            "atributo1" : "valorA1",

            "atributo2" : "valorA2",

            ...

            "atributoN" : "valorAN"

        },

        {

            "atributo1" : "valorB1",

            "atributo2" : "valorB2",

            ...

            "atributoN" : "valorBN"

        }

    ]

}

Submeter uma mensagem, sem header

...

Tratar como event ou request.

Bloco de código
languagejs
POST /totvseai/standardmessage/v1/transactions/customervendor_1_000/

{

    "atributo1" : "",

    "atributo2" : "",

    ...

    "atributoN" : ""

}

Submeter uma mensagem, com header

...

Bloco de código
languagejs
POST /totvseai/standardmessage/v1/transactions/

{

    "header" : {

        "UUID" : "",

        "type" : "BusinessMessage",

        "subType" : "event|request",

        "transaction" : "customerVendor",

        "version" : "2.001",

        "sourceApplication": "",

        "productName" : "",

        "productVersion" : "",

        "generatedOn" : "",

        "deliveryType" : "async",

    },            

    "content" : {

        "atributo1" : "",

        "atributo2" : "",

        ...

        "atributoN" : ""

    }

}

Eliminar uma mensagem, com header

Bloco de código
languagejs
DELETE /totvseai/standardmessage/v1/transactions

{

    "header" : {

        "UUID" : "",

        "type" : "BusinessMessage",

        "subType" : "event|request",

        "transaction" : "customerVendor",

        "version" : "2.001",

        "sourceApplication": "",

        "productName" : "",

        "productVersion" : "",

        "generatedOn" : "",

        "deliveryType" : "async",

    },            

    "content" : {

        "atributo1" : "",

        "atributo2" : "",

        ...

        "atributoN" : ""

    }

}

Eliminar um lote de mensagens, com headers

Bloco de código
languagejs
DELETE /totvseai/standardmessage/v1/transactions

{
    "items" : [

        {

            "header" : {

                "UUID" : "",

                "type" : "BusinessMessage",

                "subType" : "event|request",

                "transaction" : "customerVendor",

                "version" : "2.001",

                "sourceApplication": "",

                "productName" : "",

                "productVersion" : "",

                "generatedOn" : "",

                "deliveryType" : "async",

            },            

            "content" : {

                "atributo1" : "",

                "atributo2" : "",

                ...

                "atributoN" : ""

            }

        },

        {

            "header" : {

                "UUID" : "",

                "type" : "BusinessMessage",

                "subType" : "event|request",

                "transaction" : "customerVendor",

                "version" : "2.001",

                "sourceApplication": "",

                "productName" : "",

                "productVersion" : "",

                "generatedOn" : "",

                "deliveryType" : "async",

            },            

            "content" : {

                "atributo1" : "",

                "atributo2" : "",

                ...

                "atributoN" : ""

            }

        }

    ]

}

Endpoint /contents

Recuperar um lote de mensagens

...