API reference
Producing messages
Creates a topic
POST http://streams.token-project.eu:8080/topics/topic
Creates a topic.
Headers
Content-Type*
string
application/json
Authorization*
string
Bearer: $TOKEN
Request Body
topic_name*
string
The topic name
{
"message": "created"
}curl -L -X POST 'http://streams.token-project.eu:8080/streams/topics/topic' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $TOKEN' \
--data-raw '{"topic_name": "example"}'Produces JSON messages to a topic
POST http://streams.token-project.eu:8080/streams/topic/topic_name
Produces JSON messages to a topic
Headers
Content-Type*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
Request Body
records*
Array
Array of JSON Objects
Consuming messages
Creates a new consumer instance
POST http://streams.token-project.eu:8080/streams/consumers/consumer_group
Creates a new consumer.
Headers
Content-Type*
string
application/vnd.kafka.json.v2+json
Accept*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
Request Body
auto.offset.reset
string
Sets the auto.offset.reset setting for the consumer
Subscribes the consumer to a topic
POST http://streams.token-project.eu:8080streams/consumers/consumer_group/instances/2eb4ab23-0771-496d-8731-510772c454ab/subscription
Subscribes the consumer to a topic
Headers
Content-Type*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
Request Body
topics*
Array
Array of topics to subscribe to
Consumes messages from a topic
GET http://streams.token-project.eu:8080streams/consumers/consumer_group/instances/2eb4ab23-0771-496d-8731-510772c454ab/records
Consumes messages from a topic
Headers
Accept*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
Last updated
Was this helpful?