@Path(value="/confluent/subjects/{subject}/versions") @Consumes(value={"application/json","application/vnd.schemaregistry.v1+json"}) @Produces(value={"application/json","application/vnd.schemaregistry.v1+json"}) public class SubjectVersionsResource extends AbstractResource
log
Constructor and Description |
---|
SubjectVersionsResource() |
Modifier and Type | Method and Description |
---|---|
void |
deleteSchemaVersion(javax.ws.rs.container.AsyncResponse response,
javax.ws.rs.core.HttpHeaders headers,
String subject,
String version) |
Schema |
getSchemaByVersion(String subject,
String version) |
String |
getSchemaOnly(String subject,
String version) |
List<Integer> |
listVersions(String subject) |
void |
register(javax.ws.rs.container.AsyncResponse response,
javax.ws.rs.core.HttpHeaders headers,
String subject,
@NotNull RegisterSchemaRequest request) |
checkSubject
@GET @Path(value="/{version}") public Schema getSchemaByVersion(@PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
@GET @Path(value="/{version}/content") public String getSchemaOnly(@PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
@GET public List<Integer> listVersions(@PathParam(value="subject") String subject) throws Exception
Exception
@POST public void register(@Suspended javax.ws.rs.container.AsyncResponse response, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="subject") String subject, @NotNull @NotNull RegisterSchemaRequest request) throws Exception
Exception
@DELETE @Path(value="/{version}") public void deleteSchemaVersion(@Suspended javax.ws.rs.container.AsyncResponse response, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="subject") String subject, @PathParam(value="version") String version) throws Exception
Exception
Copyright © 2019 Red Hat. All rights reserved.