GET /topics

Retrieves a list of topic names.

Description

Depending on the configuration, the type of information retrieved has different behavior. See the streams.default.stream in Configuration Parameters

Table 1.
Parameters Defined Response
streams.default.stream is defined

Returns a list of topic names in the default stream.

Returns topic names that contain a stream path.

streams.default.stream is not defined Returns {"error_code":80001,"message":"MapR Event Store For Apache Kafka does not currently support this API. Set the streams.default.stream parameter to return topics for the default stream"}

Syntax

http://<host>:8082/topics

Request Example

$ curl "Content-Type: application/vnd.kafka.v2+json" "http://localhost:8082/topics"

Response Example

[
        "streaming_data/stream:testtopic1",
        "streaming_data/stream:testtopic2"
        ]