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 and rest.proxy.backend parameters 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 and rest.proxy.backend=streams Returns {"error_code":80001,"message":"MapR Streams does not currently support this API Set the streams.default.stream parameter to return topics for the default stream"}
streams.default.stream is not defined and rest.proxy.backend=hybrid Returns list of Apache Kafka topics.

Syntax

http://<host>:8082/topics

Request Example

$ curl "http://localhost:8082/topics"

Response Example

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