Class Revision


  • @Path("/revision")
    public class Revision
    extends RegistryRestSuper
    This class is to handle the resource revision related to REST verbs GET,POST and DELETE.
    • Constructor Detail

      • Revision

        public Revision()
    • Method Detail

      • getRevision

        public javax.ws.rs.core.Response getRevision​(String path,
                                                     long revisionId,
                                                     @HeaderParam("X-JWT-Assertion")
                                                     String JWTToken)
        This method get a revision on the requested resource(using revision id).
        Parameters:
        path - - Path of the resource in the registry
        Returns:
        Response - resource
      • createRevision

        public javax.ws.rs.core.Response createRevision​(String path,
                                                        @HeaderParam("X-JWT-Assertion")
                                                        String JWTToken)
        This method is to create a revision of a given resource.
        Parameters:
        path - - Path of the resource in the registry
      • deleteRevision

        public javax.ws.rs.core.Response deleteRevision​(String path,
                                                        long versionID,
                                                        @HeaderParam("X-JWT-Assertion")
                                                        String JWTToken)
        This method is to delete a given revision (using revision id).
        Parameters:
        path - path of the resource in the registry