-
1. Re: Rest Interface path examples
elvisisking Oct 14, 2009 2:52 PM (in response to mbucknam1)I don't have a URL for the "example" repository but here's one from a repository I use to test the DNA Eclipse plugin:
http://localhost:8080/resources/dna:repository/default/items/myproject/myfolder/picture.jpg/jcr:content/jcr:lastModified
The repository is "dna:repository" and the workspace is "default".
The "picture.jpg" is a node representing a file. It's parent node represents a folder and has a name of "myfolder". That parent node has a parent that also represents a folder and has a name of "myproject".
This "picture.jpg" node has a child node called "jcr:content" that has a property called "jcr:lastModified".
That URL gives me the value of the "jcr:lastModified" property back as a JSON object string that looks like this:
{"jcr:lastModified":"2009-10-05T13:55:40.000-05:00"}
Hope that helps. -
2. Re: Rest Interface path examples
mbucknam1 Oct 14, 2009 5:08 PM (in response to mbucknam1)Thanks elvis! It turns out to have been a user error. I copied the files for the example over to the war and rebuilt it but I did not notice that code changes were also necessary to actually load the cnd and xml data files into the engine. Once I created my own implementation of the repository provider that actually loaded the files, the searches started working.