@Path(value="/ccompat/subjects/{subject}/versions")
@Consumes(value={"application/json","application/octet-stream","application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json"})
@Produces(value="application/vnd.schemaregistry.v1+json")
public interface SubjectVersionsResource
Modifier and Type | Method and Description |
---|---|
int |
deleteSchemaVersion(String subject,
String version)
Deletes a specific version of the schema registered under this subject.
|
Schema |
getSchemaByVersion(String subject,
String version)
Get a specific version of the schema registered under this subject
Parameters:
subject (string) – Name of the subject
version (versionId) – Version of the schema to be returned.
|
String |
getSchemaOnly(String subject,
String version)
Get the schema for the specified version of this subject.
|
List<Integer> |
getSchemasReferencedBy(String subject,
Integer version)
Get a list of IDs of schemas that reference the schema with the given subject and version.
|
List<Integer> |
listVersions(String subject)
Get a list of versions registered under the specified subject.
|
void |
register(javax.ws.rs.container.AsyncResponse response,
String subject,
@NotNull SchemaInfo request)
Register a new schema under the specified subject.
|
@GET List<Integer> listVersions(@PathParam(value="subject") String subject) throws Exception
Exception
@POST void register(@Suspended javax.ws.rs.container.AsyncResponse response, @PathParam(value="subject") String subject, @NotNull @NotNull SchemaInfo request) throws Exception
Exception
@GET @Path(value="/{version}") Schema getSchemaByVersion(@PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
@DELETE @Path(value="/{version}") int deleteSchemaVersion(@PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
@GET @Path(value="/{version}/schema") String getSchemaOnly(@PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
@GET @Path(value="/{version}/referencedby") List<Integer> getSchemasReferencedBy(@PathParam(value="subject") String subject, @PathParam(value="version") Integer version) throws Exception
Exception
Copyright © 2020 Red Hat. All rights reserved.