Skip to content

Instantly share code, notes, and snippets.

@kavimaluskam
Created January 30, 2019 10:34
Show Gist options
  • Save kavimaluskam/63d50d28b369e6c40f7eadc3a68d1c99 to your computer and use it in GitHub Desktop.
Save kavimaluskam/63d50d28b369e6c40f7eadc3a68d1c99 to your computer and use it in GitHub Desktop.
Schema Registry expected curl outputs
# 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