API reference
Producing messages
Creates a topic
POST
http://streams.token-project.eu:8080/topics/topic
Creates a topic.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
topic_name* | string | The topic name |
Produces JSON messages to a topic
POST
http://streams.token-project.eu:8080/streams/topic/topic_name
Produces JSON messages to a topic
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/vnd.kafka.json.v2+json |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type* | string | application/vnd.kafka.json.v2+json |
Accept* | string | application/vnd.kafka.json.v2+json |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type* | string | application/vnd.kafka.json.v2+json |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Accept* | string | application/vnd.kafka.json.v2+json |
Authorization* | string | Bearer: $TOKEN |
Last updated