thank you very much!
Another question: What about the REST Client API to upload files programmatically via REST? Is it still supported/recommended for ModeShape 3 and 4?
The REST Client API has been removed altogether from ModeShape 4.
In ModeShape 3 the purpose of the client was never to be used externally, but rather only by the remote JDBC driver. ModeShape 3 is at the end of its community life, but if the client works for your use case, fell free to use it.
REST Client API does not seem to work that successfully.
"ERROR org.modeshape.web.jcr.rest.client.json.JsonRestClient - response code=404 method=createFolderNode"
File file = new File("C:\"tsDocument.xml");
Server server = new Server("http://localhost:8080", "myUser", "myFancyPasswd");
Repository repository = new Repository("artifacts", server);
Workspace workspace = new Workspace("default", repository);
IRestClient restClient = new JsonRestClient();
Status status = restClient.publish(workspace, "test", file);
Afaik artifacts is my repository and I'm using the default workspace.
At least I can access the default workspace straightforward by webdav: http://localhost:8080/modeshape-webdav/artifacts/default/