Class SchemasResource


@Path("/schemas") public class SchemasResource extends SchemasResourceBase
  • Constructor Details

    • SchemasResource

      public SchemasResource()
  • Method Details

    • getSchema

      @GET @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") public void getSchema(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
    • getSchema

      @GET @Path("/{tenant}/{namespace}/{topic}/schema/{version}") @Produces("application/json") public void getSchema(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, @PathParam("version") @Encoded String version, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
    • getAllSchemas

      @GET @Path("/{tenant}/{namespace}/{topic}/schemas") @Produces("application/json") public void getAllSchemas(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
    • deleteSchema

      @DELETE @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") public void deleteSchema(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("force") @DefaultValue("false") boolean force, @Suspended javax.ws.rs.container.AsyncResponse response)
    • postSchema

      @POST @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") @Consumes("application/json") public void postSchema(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
    • testCompatibility

      @POST @Path("/{tenant}/{namespace}/{topic}/compatibility") @Produces("application/json") @Consumes("application/json") public void testCompatibility(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
    • getVersionBySchema

      @POST @Path("/{tenant}/{namespace}/{topic}/version") @Produces("application/json") @Consumes("application/json") public void getVersionBySchema(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)