API reference
Last updated
Last updated
POST
http://streams.token-project.eu:8080/topics/topic
Creates a topic.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
http://streams.token-project.eu:8080/streams/topic/topic_name
Produces JSON messages to a topic
POST
http://streams.token-project.eu:8080/streams/consumers/consumer_group
Creates a new consumer.
POST
http://streams.token-project.eu:8080streams/consumers/consumer_group/instances/2eb4ab23-0771-496d-8731-510772c454ab/subscription
Subscribes the consumer to a topic
GET
http://streams.token-project.eu:8080streams/consumers/consumer_group/instances/2eb4ab23-0771-496d-8731-510772c454ab/records
Consumes messages from a topic
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Content-Type*
string
application/json
Authorization*
string
Bearer: $TOKEN
topic_name*
string
The topic name
Content-Type*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
records*
Array
Array of JSON Objects
Content-Type*
string
application/vnd.kafka.json.v2+json
Accept*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
auto.offset.reset
string
Sets the auto.offset.reset setting for the consumer
Content-Type*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN
topics*
Array
Array of topics to subscribe to
Accept*
string
application/vnd.kafka.json.v2+json
Authorization*
string
Bearer: $TOKEN