I have enabled my nodes as mixin. And I am already able to commit assets for the first version, list all files and also list all version of a file (even though currently there is only one). But I still have no idea what the curl command would be to checkin a new version. By checkin I mean it then locks down version 1 and any time I go to upload a new asset it will be at version 2. There must be some parameter that I could use in a Curl command to do this somehow I would assume?
Is there a concise list of what sling currently supports in the way of RestFUL commands? It feels like there is some trick that everyone else in the sling community knows about, that I don't, in regards to accessing all of the JCR API abilities. Cheers, Kent. On Jan 18, 2010, at 7:42 PM, Dominik Süß wrote: > Hi Kent, > > to enable a node to have versions it needs the mixin type "mix:versionable" > See here for further information > http://wiki.apache.org/jackrabbit/mix:versionable > > And you might wanna look at JCR API for Versionretrieval > http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html > (look for VersionHistory) > > HTH, > Dominik > > On Sun, Jan 17, 2010 at 8:53 PM, Kent Barber <[email protected]> wrote: > >> Hi, >> >> Can someone give tell me what the curl command would be to use the >> version control abilities of sling to checkin a node? >> >> And also how can I get the total number of versions that a node has? >> >> Thanks, >> Kent. >>
