Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are two separate endpoints to support different publishing cases as described above. They both share the same request format.

  • Request Schema

    Code Block
    languagejs
    {
      "type" : "record", 
      "name" : "PublishRequest",
      "fields" : [
        {
          "name" : "transactionWritePointer",
          "type" : [ "long", "null" ]
        },
        {
          "name" : "messages",
          "type" : { "type" : "array", "items" : "bytes"
     
     }
    }
     
    
        }
      ]
    }
  • Request body
    • Can be Avro binary or JSON, based on the request - Content-Type: application/json or avro/binary
    • Schema Fields:

      1. messages - Contains an array of byte arrays that correspond to messages

      2. transactionWritePointer - Corresponds to a transaction write pointer.

...