...
- MetadataTable
APIs
RESTful
Base URL: /v3v1/namespaces/<ns-id> (since REST API is internal)
Create Topic
- Request method and URI
PUT [base_url]/topics/[topic]
- Request body
- Can be empty
- If provided, it is a JSON object containing topic properties
e.g. {"ttl" : [ttl-in-seconds]}
...
- Request body
- JSON object containing topic properties. Note that this call will replace all the existing properties.
e.g. {"ttl" : [ttl-in-seconds]}
- JSON object containing topic properties. Note that this call will replace all the existing properties.
- Response
- 200 OK if the topic properties were updated successfully
- 404 NOT FOUND if the topic is not present
- 400 BAD REQUEST if the properties were not correct
Get Topic Properties
- Request method and URI
GET [base_url]/topics/[topic]
- Request body
- JSON object containing the topic name and its properties.
e.g. {"name" : "topic1", "properties" : { "ttl" : "123231" } }
- JSON object containing the topic name and its properties.
- Response
- 200 OK
- 404 NOT FOUND if the topic is not present
List Topics
- Request method and URI
GET [base_url]/topics
- Request body
- JSON object containing a list of topic name and its properties.
e.g. [ {"name" : "topic1", "properties" : { "ttl" : "123231" } }, {"name" : "topic2", "properties" : { "ttl" : "1211" } } ]
- JSON object containing a list of topic name and its properties.
- Response
- 200 OK
Delete Topic
- Request method and URI
DELETE [base_url]/topics/[topic]
...