confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.2k stars 1.11k forks source link

Lookup global schema id #2919

Open doxsch opened 8 months ago

doxsch commented 8 months ago

We would like to have a way to get the global id of a schema when we submit a schema string. Is there a method for this?

rayokota commented 8 months ago

Currently you have to pass a subject as well as the schema

https://docs.confluent.io/platform/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)

doxsch commented 8 months ago

Thank you for your answer.

Would it be possible to introduce such a method? We would like to display for which subjects the schema string is registered. In our opinion, this is not directly possible with the current methods and for GET /schemas/ids/{int: id}/versions we need the global id. Hence the question about the new method.

doxsch commented 7 months ago

Hi @rayokota

I added an example implemation for the endpoint we need. Feedback would be highly appreciated.

doxsch commented 5 months ago

@rayokota - Friendly reminder

Let me know if there’s anything more I can help with to keep things moving smoothly.