@Path(value="/ccompat/subjects/{subject}/versions") @Consumes(value={"application/json","application/vnd.schemaregistry.v1+json"}) @Produces(value={"application/json","application/vnd.schemaregistry.v1+json"}) @Counted(name="rest_request_count", description="Total number of REST requests.", tags={"group=REST","metric=rest_request_count"}) @ConcurrentGauge(name="concurrent_request_count", description="Number of concurrent REST requests.", tags={"group=REST","metric=concurrent_request_count"}) @Timed(name="rest_response_time", description="Time of a request-response interval.", tags={"group=REST","metric=rest_response_time"}, unit="milliseconds") 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 © 2020 Red Hat. All rights reserved.