Created
January 30, 2019 10:34
-
-
Save kavimaluskam/63d50d28b369e6c40f7eadc3a68d1c99 to your computer and use it in GitHub Desktop.
Schema Registry expected curl outputs
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
# Check list of available schemas | |
curl http://localhost:8081/subjects | |
# Expected output: | |
# ["app-users-value", "app-movies-value"] | |
# Check detail of app-users-value schema | |
curl http://localhost:8081/subjects/app-users-value/versions/latest | |
# Expected output: | |
# { | |
# "subject": "app-users-value", | |
# "version": 1, | |
# "id": 2, | |
# "schema": "{\"type\":\"record\",\"name\":\"users\",\"fields\":[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"}],\"connect.name\":\"users\"}" | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment