Class SchemasResource

    • Constructor Detail

      • SchemasResource

        public SchemasResource()
      • SchemasResource

        public SchemasResource​(java.time.Clock clock)
    • Method Detail

      • getSchema

        @GET
        @Path("/{tenant}/{namespace}/{topic}/schema")
        @Produces("application/json")
        public void getSchema​(@PathParam("tenant")
                              java.lang.String tenant,
                              @PathParam("namespace")
                              java.lang.String namespace,
                              @PathParam("topic")
                              java.lang.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")
                              java.lang.String tenant,
                              @PathParam("namespace")
                              java.lang.String namespace,
                              @PathParam("topic")
                              java.lang.String topic,
                              @PathParam("version") @Encoded
                              java.lang.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")
                                  java.lang.String tenant,
                                  @PathParam("namespace")
                                  java.lang.String namespace,
                                  @PathParam("topic")
                                  java.lang.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")
                                 java.lang.String tenant,
                                 @PathParam("namespace")
                                 java.lang.String namespace,
                                 @PathParam("topic")
                                 java.lang.String topic,
                                 @QueryParam("authoritative") @DefaultValue("false")
                                 boolean authoritative,
                                 @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")
                               java.lang.String tenant,
                               @PathParam("namespace")
                               java.lang.String namespace,
                               @PathParam("topic")
                               java.lang.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")
                                      java.lang.String tenant,
                                      @PathParam("namespace")
                                      java.lang.String namespace,
                                      @PathParam("topic")
                                      java.lang.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")
                                       java.lang.String tenant,
                                       @PathParam("namespace")
                                       java.lang.String namespace,
                                       @PathParam("topic")
                                       java.lang.String topic,
                                       org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
                                       @QueryParam("authoritative") @DefaultValue("false")
                                       boolean authoritative,
                                       @Suspended
                                       javax.ws.rs.container.AsyncResponse response)