schema-registry icon indicating copy to clipboard operation
schema-registry copied to clipboard

Lookup global schema id

Open doxsch opened this issue 1 year ago • 4 comments

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?

doxsch avatar Jan 07 '24 10:01 doxsch

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)

rayokota avatar Jan 08 '24 17:01 rayokota

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 avatar Jan 08 '24 18:01 doxsch

Hi @rayokota

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

doxsch avatar Feb 08 '24 08:02 doxsch

@rayokota - Friendly reminder

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

doxsch avatar Apr 16 '24 19:04 doxsch