POST
Path: /admin/rest/topics/v1/<tenant>/<namespace>/<topic>/message
Request headers(*
means required):
Accept:application/json *
Accept the response body in JSON formatContent-Type: application/octet-stream *
Send the request body in binary formatX-Pulsar-Long-Schema-Version
Schema version in long typeX-Pulsar-Sequence-Id
Message sequence IDX-Pulsar-Event-Time
Message event timeX-Pulsar-Property-<key>
Message property, key-value pairX-Pulsar-Partition-Key
Message keyBinary data
Response headers:
Content-Type: application/json *
Send the response body in JSON formatString
: message ID in string format
Status code:
201
: Send single message success400
: Wrong request params401
: Unauthorized404
: Topic/Schema doesn’t exist500
: Internal server errorJsonObject
:
reason(string
): error information
POST
Path: /admin/rest/topics/v1/<tenant>/<namespace>/<topic>/<subscriptionName>/message
Request headers(*
means required):
Accept:application/octet-stream *
Accept the response body in JSON formatContent-Type: application/json *
Send the request body in binary formatJsonObject
:
timeoutMillis (int)
: 3000*
means required):
Content-Type: application/octet-stream *
Send the response body in JSON formatX-Pulsar-Base64-Schema-Version
Schema version in base64 encoded formatX-Pulsar-Long-Schema-Version
Schema version in long typeX-Pulsar-Message-Id *
Message ID in base64 encoded formatX-Pulsar-Message-String-Id *
Message ID in string formatX-Pulsar-Sequence-Id
Message sequence IDX-Pulsar-Event-Time
Message event timeX-Pulsar-Property-<key>
Message property, key-value pairX-Pulsar-Partition-Key
Message keyBinary data
Status code:
200
: Get single message success204
: Get null message by timeout400
: Wrong request params401
: Unauthorized404
: Topic doesn’t exist500
: Internal server errorJsonObject
:
string
): error informationPUT
Path: /admin/rest/topics/v1/<tenant>/<namespace>/<topic>/<subscriptionName>/message
Request headers(*
means required):
Accept: application/json *
Accept the response body in JSON formatContent-Type: application/json *
Send the request body in binary formatString
: message ID in base64 encoded format
Response body:
no content
Status code:
204
: Acknowledge success400
: Wrong request params401
: Unauthorized404
: Topic doesn’t exist500
: Internal server errorJsonObject
:
reason(string
): error information
Hi Pulsar
into UTF-8 format bytes. If you need to send bytes in another format, specify the appropriate file. For more information see the cURL documentation.
AvroBaseStructSchema
, which supports AvroSchema
, JsonSchema
, and ProtobufSchema
.
~/test-avro-student.avsc
~/test-avro-student.json
avro-tools
installed, see the Avro product page.X-Pulsar-Long-Schema-Version
Schema version in long type
~/test-proto-test.proto
~/test-proto-message.txt
X-Pulsar-Long-Schema-Version
Schema version in long type