Merge branch 'ilayaperumalg-schema-server-get-request-doc'
This commit is contained in:
@@ -1376,6 +1376,18 @@ Response is a schema object in JSON format, with the following fields:
|
|||||||
* `version` the schema version;
|
* `version` the schema version;
|
||||||
* `definition` the schema definition.
|
* `definition` the schema definition.
|
||||||
|
|
||||||
|
====== `GET /{subject}/{format}`
|
||||||
|
|
||||||
|
Retrieve a list of existing schema by its subject and format.
|
||||||
|
|
||||||
|
Response is a list of schemas with each schema object in JSON format, with the following fields:
|
||||||
|
|
||||||
|
* `id` the schema id;
|
||||||
|
* `subject` the schema subject;
|
||||||
|
* `format` the schema format;
|
||||||
|
* `version` the schema version;
|
||||||
|
* `definition` the schema definition.
|
||||||
|
|
||||||
====== `GET /schemas/{id}`
|
====== `GET /schemas/{id}`
|
||||||
|
|
||||||
Retrieve an existing schema by its id.
|
Retrieve an existing schema by its id.
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ public class SchemaRegistryServerAvroTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFindSchemaBySubject() throws Exception {
|
public void testFindSchemasBySubjectAndVersion() throws Exception {
|
||||||
Schema v1 = new Schema();
|
Schema v1 = new Schema();
|
||||||
v1.setFormat("avro");
|
v1.setFormat("avro");
|
||||||
v1.setSubject("test");
|
v1.setSubject("test");
|
||||||
|
|||||||
Reference in New Issue
Block a user