Kafka REST 2.0.1: GET /topics

Retrieves a list of topic names.


Depending on the configuration, the type of information retrieved has different behavior. See the streams.default.stream parameter in Kafka REST 2.0.1: 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-ES does not currently support this API. Set the streams.default.stream parameter to return topics for the default stream"}



Request Example

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

Response Example