Only-A-User
Only-A-User

Reputation: 81

How to get avro schema from schema registry by subject?

I have the Schema Registry on localhost:8083 and want to get the avro schema "test.data" by name to use elsewhere.

When I try

$ curl --location --request GET 'http://localhost:8083/subjects?subject=test.data'

I get back all schemas in the registry.

Is there a way to get one schema by name?

Upvotes: 3

Views: 1724

Answers (1)

Guillaume WEILL
Guillaume WEILL

Reputation: 131

Give a try to :

curl 'http://localhost:8083/subjects/test.data/versions/latest' | jq '.schema'

Upvotes: 6

Related Questions