MatrixHB commented on PR #1:
URL:
https://github.com/apache/rocketmq-schema-registry/pull/1#issuecomment-1181265773
The REST interface to obtain schema in `SchemaController` is not
comprehensive enough. Now we only have `getSchemaBySubject` method, which is
`GET /subject/{subject}`
I think it's necessary to add the following method.
1γ`GET /schema/ids/{id}`
get schema by a specified schemaID
2γ`GET /subject/{subject}/schema/versions/{version}`
get schema by the topic and a given version
3γ`GET /subject/{subject}/schema/versions`
get all versions of schema by the topic
4γthe existing getSchemaBySubject method can be changed to `GET
/subject/{subject}/schema`, which means to get the latest (or binding) schema
version of this subject
We can discuss more about the REST interface definition.
Open-messaging schema:
https://github.com/openmessaging/openschema/blob/master/spec_cn.md
Confluent schema:
[SubjectVersionsResource](https://github.com/confluentinc/schema-registry/blob/master/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/SubjectVersionsResource.java#L71)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]