Last active
April 10, 2019 04:52
-
-
Save hkwi/bd24ef598f2ba8863b8b606329adb05e to your computer and use it in GitHub Desktop.
confluent kafka rest-proxy demo script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http POST http://rest-proxy:8082/topics/jsontest content-type:application/vnd.kafka.json.v2+json records:='[{"value":{"name":"testUser"}}]' | |
http http://rest-proxy:8082/topics/jsontest | |
http http://rest-proxy:8082/topics | |
http POST http://rest-proxy:8082/consumers/my_json_consumer content-type:application/vnd.kafka.v2+json accept:application/vnd.kafka.v2+json name=my_consumer_instance format=json auto.offset.reset=earliest | |
http POST http://rest-proxy:8082/consumers/my_json_consumer/instances/my_consumer_instance/subscription content-type:application/vnd.kafka.v2+json topics:='["jsontest"]' | |
http http://rest-proxy:8082/consumers/my_json_consumer/instances/my_consumer_instance/records accept:application/vnd.kafka.json.v2+json | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment