Skip to content

Commit b4bdc97

Browse files
authored
Update rest-proxy.md
Added the below lines for the definition of few variables were missing in the python code. partitions_api_format = 'topics/{topic_name}/partitions' partition_api_format = 'topics/{topic_name}/partitions/{partition_id}'
1 parent 5900fc2 commit b4bdc97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/hdinsight/kafka/rest-proxy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ get_topic_api = 'metadata/topics'
149149
topic_api_format = 'topics/{topic_name}'
150150
producer_api_format = 'producer/topics/{topic_name}'
151151
consumer_api_format = 'consumer/topics/{topic_name}/partitions/{partition_id}/offsets/{offset}?count={count}' # by default count = 1
152+
partitions_api_format = 'topics/{topic_name}/partitions'
153+
partition_api_format = 'topics/{topic_name}/partitions/{partition_id}'
152154

153155
# Request header
154156
headers = {

0 commit comments

Comments
 (0)