Class SchemaEndpoint


  • @Path("topics/{topicName}/schema")
    public class SchemaEndpoint
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response delete​(java.lang.String qualifiedTopicName)  
      javax.ws.rs.core.Response get​(java.lang.String qualifiedTopicName)  
      javax.ws.rs.core.Response getById​(java.lang.String qualifiedTopicName, int id)  
      javax.ws.rs.core.Response getByVersion​(java.lang.String qualifiedTopicName, int version)  
      javax.ws.rs.core.Response save​(java.lang.String qualifiedTopicName, boolean validate, javax.ws.rs.container.ContainerRequestContext requestContext, java.lang.String schema)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response get​(@PathParam("topicName")
                                             java.lang.String qualifiedTopicName)
      • getByVersion

        @GET
        @Path("versions/{version}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getByVersion​(@PathParam("topicName")
                                                      java.lang.String qualifiedTopicName,
                                                      @PathParam("version")
                                                      int version)
      • getById

        @GET
        @Path("ids/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getById​(@PathParam("topicName")
                                                 java.lang.String qualifiedTopicName,
                                                 @PathParam("id")
                                                 int id)
      • save

        @POST
        @Consumes("application/json")
        @RolesAllowed({"topicOwner","admin"})
        public javax.ws.rs.core.Response save​(@PathParam("topicName")
                                              java.lang.String qualifiedTopicName,
                                              @DefaultValue("true") @QueryParam("validate")
                                              boolean validate,
                                              @Context
                                              javax.ws.rs.container.ContainerRequestContext requestContext,
                                              java.lang.String schema)
      • delete

        @DELETE
        @RolesAllowed({"topicOwner","admin"})
        public javax.ws.rs.core.Response delete​(@PathParam("topicName")
                                                java.lang.String qualifiedTopicName)