Class Revision
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.Revision
-
@Path("/revision") public class Revision extends RegistryRestSuperThis class is to handle the resource revision related to REST verbs GET,POST and DELETE.
-
-
Constructor Summary
Constructors Constructor Description Revision()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateRevision(String path, String JWTToken)This method is to create a revision of a given resource.javax.ws.rs.core.ResponsedeleteRevision(String path, long versionID, String JWTToken)This method is to delete a given revision (using revision id).javax.ws.rs.core.ResponsegetRevision(String path, long revisionId, String JWTToken)This method get a revision on the requested resource(using revision id).-
Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
-
-
-
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
-
-